diff --git a/dev/tools/mega_gallery.dart b/dev/tools/mega_gallery.dart index e6642a52a83..6e44d2e65b9 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 00000000000..44fbe83c030 --- /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/**