Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1867)

Unified Diff: pkg/analysis_server/test/services/linter/linter_test.dart

Issue 1752183003: Handle incomplete rule options gracefully. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/services/linter/linter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/linter/linter_test.dart
diff --git a/pkg/analysis_server/test/services/linter/linter_test.dart b/pkg/analysis_server/test/services/linter/linter_test.dart
index a1f57ebc414efabef7812b976233367e0b50719f..00a9fd6abdc4af52ffff536764338061f671de27 100644
--- a/pkg/analysis_server/test/services/linter/linter_test.dart
+++ b/pkg/analysis_server/test/services/linter/linter_test.dart
@@ -21,7 +21,7 @@ main() {
@reflectiveTest
class LinterRuleOptionsValidatorTest {
- final LinterRuleOptionsValidator validator= new LinterRuleOptionsValidator();
+ final LinterRuleOptionsValidator validator = new LinterRuleOptionsValidator();
final AnalysisOptionsProvider optionsProvider = new AnalysisOptionsProvider();
RecordingErrorListener recorder;
@@ -53,6 +53,17 @@ linter:
[]);
}
+ test_linter_null_rule() {
+ validate(
+ '''
+linter:
+ rules:
+ -
+
+ ''',
+ []);
+ }
+
test_linter_undefined_rule() {
validate(
'''
« no previous file with comments | « pkg/analysis_server/lib/src/services/linter/linter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698