From cb3dee79c5318f6b32d084d9c495b52b2a3f876c Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Tue, 6 Nov 2018 07:59:33 -0800 Subject: [PATCH] add an analysis_options excludes for the build/ dir (#23653) * add an analysis_options excludes for the build/ dir * fix bots --- dev/tools/mega_gallery.dart | 3 +++ examples/flutter_gallery/analysis_options.yaml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 examples/flutter_gallery/analysis_options.yaml diff --git a/dev/tools/mega_gallery.dart b/dev/tools/mega_gallery.dart index e6642a52a8..6e44d2e65b 100644 --- a/dev/tools/mega_gallery.dart +++ b/dev/tools/mega_gallery.dart @@ -83,6 +83,9 @@ void main(List 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. diff --git a/examples/flutter_gallery/analysis_options.yaml b/examples/flutter_gallery/analysis_options.yaml new file mode 100644 index 0000000000..44fbe83c03 --- /dev/null +++ b/examples/flutter_gallery/analysis_options.yaml @@ -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/**