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

Unified Diff: pkg/testing/lib/src/analyze.dart

Issue 2743423009: Run dartfmt on remaining unformated pkg packages (Closed)
Patch Set: Run dartfmt on remaining unformated pkg packages Created 3 years, 9 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/lookup_map/test/lookup_map_test.dart ('k') | pkg/testing/lib/src/chain.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/testing/lib/src/analyze.dart
diff --git a/pkg/testing/lib/src/analyze.dart b/pkg/testing/lib/src/analyze.dart
index c976020a09682ad268c53d30818515c352995da2..781b408c70887c3a440c9bd6e61a9f72a35a9f4e 100644
--- a/pkg/testing/lib/src/analyze.dart
+++ b/pkg/testing/lib/src/analyze.dart
@@ -4,26 +4,17 @@
library testing.analyze;
-import 'dart:async' show
- Stream,
- Future;
+import 'dart:async' show Stream, Future;
-import 'dart:convert' show
- LineSplitter,
- UTF8;
+import 'dart:convert' show LineSplitter, UTF8;
-import 'dart:io' show
- File,
- Process;
+import 'dart:io' show File, Process;
-import '../testing.dart' show
- dartSdk;
+import '../testing.dart' show dartSdk;
-import 'log.dart' show
- isVerbose;
+import 'log.dart' show isVerbose;
-import 'suite.dart' show
- Suite;
+import 'suite.dart' show Suite;
class Analyze extends Suite {
final Uri analysisOptions;
@@ -85,9 +76,14 @@ class AnalyzerDiagnostic {
if (parts.length != 8) {
throw "Malformed output: $line";
}
- return new AnalyzerDiagnostic(parts[0], parts[1], parts[2],
+ return new AnalyzerDiagnostic(
+ parts[0],
+ parts[1],
+ parts[2],
Uri.base.resolve(parts[3]),
- int.parse(parts[4]), int.parse(parts[5]), int.parse(parts[6]),
+ int.parse(parts[4]),
+ int.parse(parts[5]),
+ int.parse(parts[6]),
parts[7]);
}
@@ -108,8 +104,7 @@ Stream<AnalyzerDiagnostic> parseAnalyzerOutput(
}
/// Run dartanalyzer on all tests in [uris].
-Future<Null> analyzeUris(
- Uri analysisOptions, Uri packages, List<Uri> uris,
+Future<Null> analyzeUris(Uri analysisOptions, Uri packages, List<Uri> uris,
List<RegExp> exclude) async {
if (uris.isEmpty) return;
const String analyzerPath = "bin/dartanalyzer";
@@ -118,9 +113,9 @@ Future<Null> analyzeUris(
throw "Couldn't find '$analyzerPath' in '${dartSdk.toFilePath()}'";
}
List<String> arguments = <String>[
- "--packages=${packages.toFilePath()}",
- "--package-warnings",
- "--format=machine",
+ "--packages=${packages.toFilePath()}",
+ "--package-warnings",
+ "--format=machine",
];
if (analysisOptions != null) {
arguments.add("--options=${analysisOptions.toFilePath()}");
@@ -157,4 +152,3 @@ Future<Null> analyzeUris(
sw.stop();
print("Running analyzer took: ${sw.elapsed}.");
}
-
« no previous file with comments | « pkg/lookup_map/test/lookup_map_test.dart ('k') | pkg/testing/lib/src/chain.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698