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

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

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)
Patch Set: Created 3 years, 5 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
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 66d34046888f38c534ad096bf102ed5d8cbe3f6b..c88c48a5decfd609c79ee32c6d229028f979ba67 100644
--- a/pkg/analysis_server/test/services/linter/linter_test.dart
+++ b/pkg/analysis_server/test/services/linter/linter_test.dart
@@ -34,43 +34,35 @@ class LinterRuleOptionsValidatorTest {
}
test_linter_defined_rules() {
- validate(
- '''
+ validate('''
linter:
rules:
- camel_case_types
- ''',
- []);
+ ''', []);
}
test_linter_no_rules() {
- validate(
- '''
+ validate('''
linter:
rules:
- ''',
- []);
+ ''', []);
}
test_linter_null_rule() {
- validate(
- '''
+ validate('''
linter:
rules:
-
- ''',
- []);
+ ''', []);
}
test_linter_undefined_rule() {
- validate(
- '''
+ validate('''
linter:
rules:
- undefined
- ''',
- [UNDEFINED_LINT_WARNING]);
+ ''', [UNDEFINED_LINT_WARNING]);
}
validate(String source, List<ErrorCode> expected) {

Powered by Google App Engine
This is Rietveld 408576698