mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Migrate flutter analyze config to options.
More groundwork to get `analyze` and IDE output to agree. See: https://github.com/dart-lang/sdk/issues/25723
This commit is contained in:
parent
b9f28e6f75
commit
0aa07baf70
@ -5,6 +5,9 @@
|
|||||||
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
|
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
|
||||||
|
|
||||||
analyzer:
|
analyzer:
|
||||||
|
language:
|
||||||
|
enableSuperMixins: true
|
||||||
|
strong-mode: false #TODO(pq): enable once strong-mode runs clean
|
||||||
errors:
|
errors:
|
||||||
# we allow overriding fields (if they use super, ideally...)
|
# we allow overriding fields (if they use super, ideally...)
|
||||||
strong_mode_invalid_field_override: ignore
|
strong_mode_invalid_field_override: ignore
|
||||||
|
@ -283,10 +283,8 @@ class AnalyzeCommand extends FlutterCommand {
|
|||||||
sdkBinaryName('dartanalyzer'),
|
sdkBinaryName('dartanalyzer'),
|
||||||
// do not set '--warnings', since that will include the entire Dart SDK
|
// do not set '--warnings', since that will include the entire Dart SDK
|
||||||
'--ignore-unrecognized-flags',
|
'--ignore-unrecognized-flags',
|
||||||
'--supermixin',
|
'--enable-strict-call-checks', //TODO(pq): migrate to options once supported (dart/sdk#25983)
|
||||||
'--enable-strict-call-checks',
|
|
||||||
'--enable_type_checks',
|
'--enable_type_checks',
|
||||||
'--strong',
|
|
||||||
'--package-warnings',
|
'--package-warnings',
|
||||||
'--fatal-warnings',
|
'--fatal-warnings',
|
||||||
'--fatal-hints',
|
'--fatal-hints',
|
||||||
|
Loading…
Reference in New Issue
Block a user