Skip to content

Commit 9a0992f

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: add plugin severity and dep-overrides to options signature
This was omitted from https://dart-review.googlesource.com/c/sdk/+/447540. If a user (or me) changes the dependency_overrides section of plugins options, we should refresh analysis. Change-Id: I74251412a089bf8a73e530faefead6c28a1fdbae Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/447608 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 6c3da17 commit 9a0992f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/analyzer/lib/src/dart/analysis/analysis_options.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,10 @@ class AnalysisOptionsImpl implements AnalysisOptions {
604604
in pluginConfiguration.diagnosticConfigs.values) {
605605
buffer.addString(diagnosticConfig.group ?? '');
606606
buffer.addString(diagnosticConfig.name);
607-
buffer.addBool(diagnosticConfig.isEnabled);
607+
buffer.addInt(diagnosticConfig.severity.index);
608+
}
609+
if (pluginsOptions.dependencyOverrides case var dependencyOverrides?) {
610+
buffer.addString(dependencyOverrides);
608611
}
609612
}
610613

0 commit comments

Comments
 (0)