Extensions / docs-drift-checker

Docs-to-Code Drift Checker

Flags when a function's documented signature has quietly stopped matching its real implementation.

v0.1.1 · 611 downloads · MIT

Docs Drift Checker

Flags JSDoc that no longer matches the TypeScript signature — renamed @params, missing params, widened/narrowed @returns — as Problems diagnostics on the doc comment.

Install

git clone https://github.com/bobrowsse-tech/docs-drift-checker.git
cd docs-drift-checker
npm install
npm run package
npx @vscode/vsce package --no-dependencies
code --install-extension docs-drift-checker-0.1.1.vsix

Or press F5 after npm install.

Use

Action What it does
Scan Docs Drift Walks documented functions under the workspace tsconfig
Open Mismatch Jumps to the JSDoc / signature
Suppress Appends an id to .docsdrift-ignore

Behavioral/doc-body drift is out of scope (v2). Agents can call docs_drift_scan (report-only).

How it’s built

TypeScript Compiler API + esbuild; diagnostics use VS Code’s Problems panel with --vscode-* themed dashboard CSS.

npm run watch
npm run test:unit
npm run package

Author

Bob Rowsse Walakira — hello@bobrowsse.com

License

MIT

Contributing

Changes to main must go through a pull request. See CONTRIBUTING.md.

Extension Development Host

With the local suite umbrella checked out, press F5 (Extension + playground) to load ../playgrounds/docs-drift-checker/ as the test workspace.