Skip to content

quality: one strict config, drop tiers (part of #15298) - #15708

Merged
TrapsterDK merged 1 commit into
mainfrom
one-tier
Dec 4, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
one-tier

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

rules_dx now has one quality config, and it is always strict.

What changed

  • Configs: each tool ships one config at core/quality/configs/<tool>/config.<ext>. The standard configs and the core/quality/tiers tree are deleted.
  • Tier plumbing removed:
    • the tier key in the dx.toml schema and parser, both top level and per family
    • the //config:config_tier flag and its selects
    • the tier and bases params of dx_generated_policy, and real_family_tier
    • the skip-in-standard guards: the hadolint image guard, the zig ast-check guard and kubeconform -strict now always run
    • the tier lines that dx init/dx generate rendered
    • docs/tiers-*.md, replaced by docs/quality-configs.md
  • Old tier keys: there is no migration. A leftover tier key fails like any other unknown key.
  • Overrides: the quality docs say: "rules_dx ships one strict config per tool; to change it, point the tool at your own config."
  • Strict flags: the strict compiler flags (strict_flags from dx setup carries the root rc flags users need (part of #15298) #15699) now apply unconditionally.
  • Qt: the clang-tidy profile from qt: ship a Qt clang-tidy profile for Qt idioms (part of #15298) #15705 now composes the single shipped clang-tidy config.
  • Tests: tier-pinning tests are replaced by behavior tests. Each checks either that a rule from the shipped config fires (for example ruff D417, staticcheck ST1003, the hadolint and zig guards) or that a user config overrides it.

Findings to burn down

Not measured. The owner asked for speed, so the tools/dx check //... --output=json --max-findings 0 run was skipped. The new findings are not fixed in this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hxb7tMzRqzVaKmAvVT

Each tool keeps one shipped config under core/quality/configs/<tool>/config.<ext>.
The tier key, flag, selects and standard configs are gone; a leftover tier key in
dx.toml fails as an unknown key.
@TrapsterDK
TrapsterDK merged commit 76112d7 into main Dec 4, 2026
0 of 7 checks passed
@TrapsterDK
TrapsterDK deleted the one-tier branch December 4, 2026 11:55
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