| Index: pkg/analyzer/lib/src/task/options.dart
|
| diff --git a/pkg/analyzer/lib/src/task/options.dart b/pkg/analyzer/lib/src/task/options.dart
|
| index 48343448ff4428825e9e54e427434e4d38754b63..02047f8c830c4b79285ae12e7f3254f3dacd5265 100644
|
| --- a/pkg/analyzer/lib/src/task/options.dart
|
| +++ b/pkg/analyzer/lib/src/task/options.dart
|
| @@ -411,6 +411,14 @@ class OptionsFileValidator {
|
| List<AnalysisError> validate(Map<String, YamlNode> options) {
|
| RecordingErrorListener recorder = new RecordingErrorListener();
|
| ErrorReporter reporter = new ErrorReporter(recorder, source);
|
| + if (AnalysisEngine.ANALYSIS_OPTIONS_FILE == source.shortName) {
|
| + reporter.reportError(new AnalysisError(
|
| + source,
|
| + 0, // offset
|
| + 1, // length
|
| + AnalysisOptionsHintCode.DEPRECATED_ANALYSIS_OPTIONS_FILE_NAME,
|
| + [source.shortName]));
|
| + }
|
| _validators.forEach((OptionsValidator v) => v.validate(reporter, options));
|
| return recorder.errors;
|
| }
|
|
|