Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Exclude engine sources from framework Dart analyzer checks (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Oct 29, 2024
1 parent 89af5de commit 22e0a28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ analyzer:
- "bin/cache/**"
# Ignore protoc generated files
- "dev/conductor/lib/proto/*"
- "engine/**"

linter:
rules:
Expand Down
1 change: 1 addition & 0 deletions dev/bots/analyze.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,7 @@ Future<List<File>> _gitFiles(String workingDirectory, {bool runSilently = true})
assert(filenames.last.isEmpty); // git ls-files gives a trailing blank 0x00
filenames.removeLast();
return filenames
.where((String filename) => !filename.startsWith('engine/'))
.map<File>((String filename) => File(path.join(workingDirectory, filename)))
.toList();
}
Expand Down

0 comments on commit 22e0a28

Please sign in to comment.