Unverified Commit 95a5a8d7 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Check for analyzer rule names instead of descriptions in a flutter_tools test (#107541)

The descriptions can change between different versions of the analyzer.
parent 82b843b3
...@@ -192,10 +192,10 @@ void main() { ...@@ -192,10 +192,10 @@ void main() {
arguments: <String>['analyze', '--no-pub'], arguments: <String>['analyze', '--no-pub'],
statusTextContains: <String>[ statusTextContains: <String>[
'Analyzing', 'Analyzing',
'info $analyzerSeparator Avoid empty else statements', 'avoid_empty_else',
'info $analyzerSeparator Avoid empty statements', 'empty_statements',
"info $analyzerSeparator The declaration '_incrementCounter' isn't", 'unused_element',
"warning $analyzerSeparator The parameter 'onPressed' is required", 'missing_required_param',
], ],
exitMessageContains: '4 issues found.', exitMessageContains: '4 issues found.',
exitCode: 1, exitCode: 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment