Check for analyzer rule names instead of descriptions in a flutter_tools test (#107541)
The descriptions can change between different versions of the analyzer.
This commit is contained in:
parent
82b843b36f
commit
95a5a8d741
@ -192,10 +192,10 @@ void main() {
|
||||
arguments: <String>['analyze', '--no-pub'],
|
||||
statusTextContains: <String>[
|
||||
'Analyzing',
|
||||
'info $analyzerSeparator Avoid empty else statements',
|
||||
'info $analyzerSeparator Avoid empty statements',
|
||||
"info $analyzerSeparator The declaration '_incrementCounter' isn't",
|
||||
"warning $analyzerSeparator The parameter 'onPressed' is required",
|
||||
'avoid_empty_else',
|
||||
'empty_statements',
|
||||
'unused_element',
|
||||
'missing_required_param',
|
||||
],
|
||||
exitMessageContains: '4 issues found.',
|
||||
exitCode: 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user