@@ -252,7 +275,8 @@ class AnalyzeCommand extends FlutterCommand {
'--fatal-warnings',
'--strong-hints',
'--fatal-hints',
'--lints',
// defines lints
'--options',optionsFile.path,
'--packages',packagesFile.path,
mainFile.path
];
...
...
@@ -295,8 +319,6 @@ class AnalyzeCommand extends FlutterCommand {
newRegExp(r'^\[warning\] .+ will need runtime check to cast to type .+'),// https://github.com/dart-lang/sdk/issues/24542
newRegExp(r'^\[error\] Type check failed: .*\(dynamic\) is not of type'),// allow unchecked casts from dynamic
newRegExp('^\\[error\\] Target of URI does not exist: \'dart:ui_internals\''),// https://github.com/flutter/flutter/issues/83
newRegExp(r'\[lint\] Prefer using lowerCamelCase for constant names.'),// sometimes we have no choice (e.g. when matching other platforms)
newRegExp(r'\[lint\] Avoid defining a one-member abstract class when a simple function will do.'),// too many false-positives; code review should catch real instances
newRegExp(r'\[info\] TODO.+'),
newRegExp('\\[warning\\] Missing concrete implementation of \'RenderObject\\.applyPaintTransform\''),// https://github.com/dart-lang/sdk/issues/25232