File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
tool/dash_site/lib/src/commands Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 55import 'dart:io' ;
66
77import 'package:args/command_runner.dart' ;
8+ import 'package:path/path.dart' as path;
89
910import '../utils.dart' ;
1011
@@ -35,8 +36,20 @@ int analyzeDart({bool verboseLogging = false}) {
3536 print ('Analyzing code...' );
3637 }
3738
38- final dartAnalyzeOutput = Process .runSync (Platform .executable, const [
39+ final directoriesToAnalyze = [
40+ /// dart.cn 只检查 tool/dash_site
41+ 'tool/dash_site' ,
42+ 'site' ,
43+ ...Directory ('examples' )
44+ .listSync ()
45+ .whereType <Directory >()
46+ .map ((e) => e.path)
47+ .where ((e) => ! path.basename (e).startsWith ('.' )),
48+ ];
49+
50+ final dartAnalyzeOutput = Process .runSync (Platform .executable, [
3951 'analyze' ,
52+ ...directoriesToAnalyze,
4053 ]);
4154
4255 if (dartAnalyzeOutput.exitCode != 0 ) {
You can’t perform that action at this time.
0 commit comments