Skip to content

Commit 354ca08

Browse files
committed
Sync: 2025/10/10
1 parent 08163d7 commit 354ca08

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tool/dash_site/lib/src/commands/analyze_dart.dart

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import 'dart:io';
66

77
import 'package:args/command_runner.dart';
8+
import 'package:path/path.dart' as path;
89

910
import '../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) {

0 commit comments

Comments
 (0)