Skip to content

Commit b9f28e6

Browse files
committed
Merge pull request #2615 from pq/analyze_cleanup
Analyze command cleanup.
2 parents a445323 + a2dac85 commit b9f28e6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/flutter_tools/lib/src/commands/analyze.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ class AnalyzeCommand extends FlutterCommand {
289289
'--strong',
290290
'--package-warnings',
291291
'--fatal-warnings',
292-
'--strong-hints',
293292
'--fatal-hints',
294293
// defines lints
295294
'--options', optionsFile.path,
@@ -340,7 +339,6 @@ class AnalyzeCommand extends FlutterCommand {
340339
RegExp generalPattern = new RegExp(r'^\[(error|warning|hint|lint)\] (.+) \(([^(),]+), line ([0-9]+), col ([0-9]+)\)$');
341340
RegExp allowedIdentifiersPattern = new RegExp(r'_?([A-Z]|_+)\b');
342341
RegExp constructorTearOffsPattern = new RegExp('.+#.+// analyzer doesn\'t like constructor tear-offs');
343-
RegExp ignorePattern = new RegExp(r'// analyzer says "([^"]+)"');
344342
RegExp conflictingNamesPattern = new RegExp('^The imported libraries \'([^\']+)\' and \'([^\']+)\' cannot have the same name \'([^\']+)\'\$');
345343
RegExp missingFilePattern = new RegExp('^Target of URI does not exist: \'([^\')]+)\'\$');
346344

@@ -394,14 +392,6 @@ class AnalyzeCommand extends FlutterCommand {
394392
shouldIgnore = true;
395393
} else if (constructorTearOffsPattern.allMatches(sourceLine).isNotEmpty) {
396394
shouldIgnore = true;
397-
} else {
398-
Iterable<Match> ignoreGroups = ignorePattern.allMatches(sourceLine);
399-
for (Match ignoreGroup in ignoreGroups) {
400-
if (errorMessage.contains(ignoreGroup[1])) {
401-
shouldIgnore = true;
402-
break;
403-
}
404-
}
405395
}
406396
if (shouldIgnore)
407397
continue;

0 commit comments

Comments
 (0)