dbt-doctor-rules v0.3.2 provides custom lint rules for dbt-doctor, covering dbt project structure, naming, documentation, sources, and SQL architecture. It runs via the CLI's runCustomRules command with a native SQL parser by default, and optionally supports sqlfluff via --use-sqlfluff. Released under MIT, it is actively maintained with a focus on extensibility and parity with tools like SQLFluff, dbt-checkpoint, dbt-score, and dbt_meta_testing. Requires Node >=22.
npm install dbt-doctor-rulesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use runCustomRules with a discovered dbt project object to get lint diagnostics.
Switch to ESM ("type": "module" in package.json) or use dynamic import: const { runCustomRules } = await import('dbt-doctor-rules');Adopt the native SQL parser rules; if you rely on sqlfluff, pin your version and watch release notes.
Always call discoverProject from @dbt-doctor/project-info and pass the result as the 'project' option.
Use path.resolve() to convert relative paths to absolute before passing to runCustomRules.
Provide a valid project object obtained from discoverProject().
Use named import: import { runCustomRules } from 'dbt-doctor-rules';Install the peer dependency: npm install @dbt-doctor/project-info
Use path.resolve('./relative/path') or provide an absolute path.