Skip to content

Refactor/docs rules presets - #2

Merged
joachimhodana merged 26 commits into
mainfrom
refactor/docs-rules-presets
May 31, 2026
Merged

Refactor/docs rules presets#2
joachimhodana merged 26 commits into
mainfrom
refactor/docs-rules-presets

Conversation

@joachimhodana

Copy link
Copy Markdown
Collaborator

No description provided.

Drop benchmarks, sync scripts, workflow, and website page so the project
focuses on linting and documentation instead of public score rankings.
Introduce @dbt-doctor/manifest for loading and normalizing manifest.json so
lint rules can analyze the DAG without a warehouse connection.
Add manifest path, phase4 thresholds, and ruleConfig fields so CLI and core
can share one typed configuration surface.
Load dotted rule options from .dbt-doctor, apply default/strict/enterprise
presets via tag filters, and validate ruleConfig plus phase4 thresholds.
Add 70+ rules for DAG governance, meta/testing contracts, native SQL style,
and configurable policies. Promote structural layering and config violations
to error severity so default CI gates catch DAG breaks early.
Expose coverage summaries, per-model scores, manifest path overrides, and
preset application in inspect so CI can gate on docs/tests coverage.
Ship markdown docs with sidebar navigation, generated rules catalog, tool
parity pages, copy-link headings, and GitHub star count on the landing page.
Replace leaderboard npm scripts with docs generators, add manifest to the
fixed release group, and tune turbo test dependencies.
Rewrite the presets page with a decision tree, layer diagram, and plain
language so default vs strict vs enterprise (and omitting preset) is obvious.
The generated Rules reference on the site is the canonical catalog; drop the
duplicated maintainer markdown file and update repo links accordingly.
strict now runs native SQL formatting checks for PR CI; enterprise runs the
full 122-rule catalog instead of skipping the style tier.
Stack link and check icons in one grid cell, route clicks through the button,
and use native clipboard delegation with an execCommand fallback.
Next.js 16 requires route segment config values to be statically analyzable;
importing revalidate from a constant caused the production build to fail.
Ignore YAML structural keys when counting schema tests, create fixture
dirs in the trailing-newline test, type SQL style rule diagnostics, and
export phase4 metric types from @dbt-doctor/types.
Drop config.baseline, --write-baseline, and fingerprint filtering so scans
always report the full diagnostic set without a sidecar baseline file.
Replace phase4-named helpers with coverage-metrics and score-thresholds so
inspect output matches the public coverage/score terminology.
Align style-tier ignore tags with public docs and apply the default preset
when config.preset is omitted.
Register manifest, source, jinja, and SQL style rules migrated from external
linters so strict/enterprise presets can enforce parity without sqlfluff-parity.json.
Replace monolithic phase1/phase5 test files with targeted suites for manifest,
checkpoint, score, and sql-style rule families.
Regenerate rules and parity docs from the registry, split preset guidance into
dedicated pages, and add score-modes documentation.
Regenerate rules and tool-parity docs after vp fmt so generated markdown
matches the formatter output CI enforces.
CI runs build before format:check, and prebuild regenerates rules docs without
formatting. Run vp fmt on generated paths so format:check stays green.
Tag dbt-checkpoint, dbt-score, and new SQL rules with strict, enterprise,
or sql-style so default stays quiet. Document score thresholds, SQLFluff
migration, and remove dbt_project_evaluator references from user-facing docs.
SQLFluff exits without violations when no dialect is set. Map project
adapter to --dialect and trim compatibility tests to stable ansi pairs.
Guard docs/tool-parity/sqlfluff.md so all 74 codes stay covered and link
to registered dbt-doctor rule ids.
@joachimhodana
joachimhodana merged commit f67a50c into main May 31, 2026
2 checks passed
joachimhodana added a commit that referenced this pull request May 31, 2026
Bump dbt-doctor, rules, types, manifest, and core for the parity/presets
release after merging PR #2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant