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

Unified Diff: pkg/analysis_server/test/integration/analysis/lint_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/integration/analysis/lint_test.dart
diff --git a/pkg/analysis_server/test/integration/analysis/lint_test.dart b/pkg/analysis_server/test/integration/analysis/lint_test.dart
index 97a97729dbd81638cd3b24511b3998010c8cbc0e..699b43bad43609e51866dbf9cc9d3602ead95175 100644
--- a/pkg/analysis_server/test/integration/analysis/lint_test.dart
+++ b/pkg/analysis_server/test/integration/analysis/lint_test.dart
@@ -19,9 +19,7 @@ main() {
class LintIntegrationTest extends AbstractAnalysisServerIntegrationTest {
test_no_lints_when_not_specified() async {
String source = sourcePath('test.dart');
- writeFile(
- source,
- '''
+ writeFile(source, '''
class abc { // lint: not CamelCase (should get ignored though)
}''');
standardAnalysisSetup();
@@ -34,18 +32,14 @@ class abc { // lint: not CamelCase (should get ignored though)
}
test_simple_lint_newOptionsFile() async {
- writeFile(
- sourcePath(AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE),
- '''
+ writeFile(sourcePath(AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE), '''
linter:
rules:
- camel_case_types
''');
String source = sourcePath('test.dart');
- writeFile(
- source,
- '''
+ writeFile(source, '''
class a { // lint: not CamelCase
}''');
@@ -63,18 +57,14 @@ class a { // lint: not CamelCase
}
test_simple_lint_oldOptionsFile() async {
- writeFile(
- sourcePath(AnalysisEngine.ANALYSIS_OPTIONS_FILE),
- '''
+ writeFile(sourcePath(AnalysisEngine.ANALYSIS_OPTIONS_FILE), '''
linter:
rules:
- camel_case_types
''');
String source = sourcePath('test.dart');
- writeFile(
- source,
- '''
+ writeFile(source, '''
class a { // lint: not CamelCase
}''');

Powered by Google App Engine
This is Rietveld 408576698