MCPcopy Create free account
hub / github.com/code-pushup/cli / convertSeverity

Function convertSeverity

packages/plugin-eslint/src/lib/runner/transform.ts:83–93  ·  view source on GitHub ↗
(severity: Linter.Severity)

Source from the content-addressed store, hash-verified

81}
82
83function convertSeverity(severity: Linter.Severity): IssueSeverity {
84 switch (severity) {
85 case 2:
86 return 'error';
87 case 1:
88 return 'warning';
89 case 0:
90 // shouldn't happen
91 throw new Error(`Unexpected severity ${severity} in ESLint results`);
92 }
93}

Callers 1

convertIssueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected