Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/eslint-plugin / runToolRules

Function: runToolRules()

ts
function runToolRules(tool, severityOverrides?): LintFinding[];

Defined in: tool-discovery.ts:215

Run the three RB-49 rules against a discovered tool and return the findings. The CLI grader maps these findings into per-axis scores; the ESLint rules forward them to context.report(...).

Parameters

ParameterType
toolDiscoveredTool
severityOverrides?{ toolDescription?: "error" | "warn" | "off"; toolExamples?: "error" | "warn" | "off"; toolParameterNaming?: "error" | "warn" | "off"; }
severityOverrides.toolDescription?"error" | "warn" | "off"
severityOverrides.toolExamples?"error" | "warn" | "off"
severityOverrides.toolParameterNaming?"error" | "warn" | "off"

Returns

LintFinding[]

Stable