add an analysis_options excludes for the build/ dir (#23653)

* add an analysis_options excludes for the build/ dir

* fix bots
This commit is contained in:
Devon Carew 2018-11-06 07:59:33 -08:00 committed by GitHub
parent 37cdcd76cd
commit cb3dee79c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -83,6 +83,9 @@ void main(List<String> args) {
pubspec = pubspec.replaceAll('../../packages/flutter', '../../../packages/flutter');
_file(out, 'pubspec.yaml').writeAsStringSync(pubspec);
// Remove the (flutter_gallery specific) analysis_options.yaml file.
_file(out, 'analysis_options.yaml').deleteSync();
_file(out, '.dartignore').writeAsStringSync('');
// Count source lines and number of files; tell how to run it.

View File

@ -0,0 +1,8 @@
# Take our settings from the repo's main analysis_options.yaml file, but add
# an exclude for the build directory.
include: ../../analysis_options.yaml
analyzer:
exclude:
- build/**