← All rulesCommentsComment qualitycomments/prefer-concise-commentsCopy pageView MarkdownDownload .mdLong ordinary comments should be reduced when substantially shorter prose preserves their maintenance value.verbosityreadabilityprose01 Examples Reported Accepted TypeScript// It is important to note that we intentionally retry only once here because another retry is performed by the queue worker upstream.FindingPrefer useful but concise comment prose.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/prefer-concise-comments": "warn"CopyPackage@scruple/commentsDefault threshold0.9Minimum confidence0.65
comments/prefer-concise-comments
Long ordinary comments should be reduced when substantially shorter prose preserves their maintenance value.
Prefer useful but concise comment prose.
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/prefer-concise-comments": "warn"@scruple/comments