← All rulesCommentsComment qualitycomments/no-change-history-commentsCopy pageView MarkdownDownload .mdComments should explain current constraints rather than narrate completed changes that belong in version control history.historymaintenanceprose01 Examples Reported Accepted TypeScript// Changed this from 3 to 5 last Tuesday. const retries = 5;FindingDisallow obsolete change narration.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/no-change-history-comments": "warn"CopyPackage@scruple/commentsDefault threshold0.95Minimum confidence0.7
comments/no-change-history-comments
Comments should explain current constraints rather than narrate completed changes that belong in version control history.
Disallow obsolete change narration.
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/no-change-history-comments": "warn"@scruple/comments