Index: pkg/analysis_server/test/analysis/notification_analysis_options_test.dart |
diff --git a/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart b/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart |
index f2835185c0f0229ab2354d6ff4a2fb66d609f99e..1d4c9d1db55fe0e91da7b739eba3ce820f42e764 100644 |
--- a/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart |
+++ b/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart |
@@ -113,6 +113,23 @@ linter: |
verifyLintsEnabled(['camel_case_types']); |
} |
+ test_lint_options_unsupported() async { |
+ addOptionsFile(''' |
+linter: |
+ rules: |
+ - unsupported |
+'''); |
+ |
+ addTestFile(testSource); |
+ setAnalysisRoot(); |
+ |
+ await waitForTasksFinished(); |
+ |
+ expect(optionsFileErrors, hasLength(1)); |
+ expect(optionsFileErrors.first.severity, AnalysisErrorSeverity.WARNING); |
+ expect(optionsFileErrors.first.type, AnalysisErrorType.STATIC_WARNING); |
+ } |
+ |
test_options_file_added() async { |
addTestFile(testSource); |
setAnalysisRoot(); |