We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d579bd commit 8ca79a9Copy full SHA for 8ca79a9
tools/clang_tidy/bin/main.dart
@@ -12,8 +12,14 @@
12
//
13
// User environment variable FLUTTER_LINT_ALL to run on all files.
14
15
+import 'dart:io' as io;
16
+
17
import 'package:clang_tidy/clang_tidy.dart';
18
19
Future<int> main(List<String> arguments) async {
- return ClangTidy.fromCommandLine(arguments).run();
20
+ final int result = await ClangTidy.fromCommandLine(arguments).run();
21
+ if (result != 0) {
22
+ io.exit(result);
23
+ }
24
+ return result;
25
}
0 commit comments