createLintCode static method

LintCode createLintCode(
  1. BaseAnalyzer analyzer
)

Implementation

static LintCode createLintCode(BaseAnalyzer analyzer) {
  return LintCode(
    name: analyzer.ruleName,
    problemMessage: analyzer.problemMessage,
    correctionMessage: analyzer.correctionMessage,
    errorSeverity: ErrorSeverity.ERROR,
  );
}