Merge pull request #2629 from pq/options_mig

Migrate flutter analyze config to options.
This commit is contained in:
Phil Quitslund 2016-03-11 15:28:10 -08:00
commit a237b47c41
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,9 @@
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
analyzer:
language:
enableSuperMixins: true
strong-mode: false #TODO(pq): enable once strong-mode runs clean
errors:
# we allow overriding fields (if they use super, ideally...)
strong_mode_invalid_field_override: ignore

View File

@ -283,10 +283,8 @@ class AnalyzeCommand extends FlutterCommand {
sdkBinaryName('dartanalyzer'),
// do not set '--warnings', since that will include the entire Dart SDK
'--ignore-unrecognized-flags',
'--supermixin',
'--enable-strict-call-checks',
'--enable-strict-call-checks', //TODO(pq): migrate to options once supported (dart/sdk#25983)
'--enable_type_checks',
'--strong',
'--package-warnings',
'--fatal-warnings',
'--fatal-hints',