[tools] Update generate_idefiles.py to exclude analyzing sdk_nnbd

After https://dart-review.googlesource.com/c/sdk/+/116527 was landed, running the analyzer on the sdk root produces 14k+ messages instead of  2k+ messages.

Note 1800 of those 2200 messages are TODOs.

Change-Id: I9d75924b83ac9e2c42fd2ce4ca64b73d55c8fc53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118987
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
This commit is contained in:
Daco Harkes 2019-09-26 17:31:50 +00:00 committed by commit-bot@chromium.org
parent 661816ea06
commit f3793ab22d

View file

@ -84,7 +84,7 @@ def GenerateAnalysisOptions(options):
To prevent dartanalyzer from tripping on the non-Dart files when it is
started from the root dart-sdk directory.
https://github.com/Dart-Code/Dart-Code/issues/1295
https://github.com/dart-lang/sdk/issues/35562
Args:
options: supported options include: force, dir
@ -96,6 +96,7 @@ def GenerateAnalysisOptions(options):
- runtime/**
- samples-dev/swarm/**
- sdk/lib/**
- sdk_nnbd/lib/**
- tests/**
- third_party/observatory_pub_packages/**
- third_party/pkg/**
@ -106,7 +107,7 @@ def GenerateAnalysisOptions(options):
- tools/dom/**
- tools/sdks/dart-sdk/lib/**
- tools/status_clean.dart
- xcodebuild / **"""
- xcodebuild/**"""
fname = os.path.join(options.dir, "analysis_options.yaml")