0ed2082654
Also allow warning diagnostics to be disabled. In many places, the RuleConfig is unchanged because currently the `linter/rules` section parsing is shared with the `plugin/<plugin-name>/diagnostics` section parsing. They will probably diverge at some point, but as long as they are the same, we can use the same Registry class to identify enabled and disabled rules/diagnostics. Change-Id: I9c00770af14d3b753532bcf1bc6bff62624d99ff Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/393460 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>