mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
37cdcd76cd
commit
cb3dee79c5
@ -83,6 +83,9 @@ void main(List<String> args) {
|
|||||||
pubspec = pubspec.replaceAll('../../packages/flutter', '../../../packages/flutter');
|
pubspec = pubspec.replaceAll('../../packages/flutter', '../../../packages/flutter');
|
||||||
_file(out, 'pubspec.yaml').writeAsStringSync(pubspec);
|
_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('');
|
_file(out, '.dartignore').writeAsStringSync('');
|
||||||
|
|
||||||
// Count source lines and number of files; tell how to run it.
|
// Count source lines and number of files; tell how to run it.
|
||||||
|
8
examples/flutter_gallery/analysis_options.yaml
Normal file
8
examples/flutter_gallery/analysis_options.yaml
Normal 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/**
|
Loading…
Reference in New Issue
Block a user