convertErrorSeverity method

AnalysisErrorSeverity convertErrorSeverity(
  1. DiagnosticSeverity severity
)

Convert the error severity from the 'analyzer' package to an analysis error severity defined by the plugin API.

Implementation

plugin.AnalysisErrorSeverity convertErrorSeverity(
  analyzer.DiagnosticSeverity severity,
) => plugin.AnalysisErrorSeverity.values.byName(severity.name);