Support fixing codes not enabled in the options file
Codes specified on the command-line are force-enabled in all of the analysis options for all of the files. This is done in a brute force way, but it should be safe because the code is creating an analysis context collection just for this one run, so the options objects should be short lived. Closes https://github.com/dart-lang/sdk/issues/63345 Change-Id: I8925da426d6cb5b9ce686725e3b95696b552cae0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/505045 Reviewed-by: Keerti Parthasarathy <keertip@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
committed by
dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent
aa67f94ba2
commit
f2319d4ed4
@@ -344,7 +344,11 @@ linter:
|
||||
expect(result.stderr, isEmpty);
|
||||
expect(
|
||||
result.stdout,
|
||||
stringContainsInOrderWithVariableBullets(['Nothing to fix!']),
|
||||
stringContainsInOrderWithVariableBullets([
|
||||
'lib/main.dart',
|
||||
'prefer_single_quotes - 1 fix',
|
||||
'1 fix made in 1 file.',
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user