← All rulesCommentsTooling directivescomments/require-justified-suppressionsCopy pageView MarkdownDownload .mdExplicit lint, type-check, coverage, formatter, Semgrep, and Scruple suppressions should state why bypassing the tool is justified.suppressionlintjustification01 Examples Reported Accepted TypeScript// eslint-disable-next-line no-console console.log(value);FindingRequire explanations for tool suppressions.02 Enable itSetupInstall the package, register its plugin factory, then enable the rule.Install the packagepnpm add -D @scruple/commentsRegister the plugin In scruple.config.ts, register the factory under the comments namespace used by the rule ID. import { comments } from "@scruple/comments"; plugins: { "comments": comments(), },Enable the rule"comments/require-justified-suppressions": "warn"CopyPackage@scruple/commentsDefault threshold0.85Minimum confidence0.7
comments/require-justified-suppressions
Explicit lint, type-check, coverage, formatter, Semgrep, and Scruple suppressions should state why bypassing the tool is justified.
Require explanations for tool suppressions.
Setup
Install the package, register its plugin factory, then enable the rule.
Install the package
Register the plugin
In
scruple.config.ts, register the factory under thecommentsnamespace used by the rule ID.Enable the rule
"comments/require-justified-suppressions": "warn"@scruple/comments