5adc86d0ce
Changes the logic in `pkg/analyzer_plugin` to use `DiagnosticCode.lowerCaseName` instead of `DiagnosticCode.name`. This ensures that diagnostic codes are matched in a case-insensitive fashion. This paves the way for deprecating (and eventually removing) the `DiagnosticCode.name` getter. Change-Id: I6a6a6964db7910a1226693ab60305b25aa02dce5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/466130 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Paul Berry <paulberry@google.com>