Skip to content

quality: standard tier is the tool default for clang-tidy, ruff, ty, pydoclint, govet, staticcheck, gopls, cmakelint (part of #15298) - #15704

Closed
TrapsterDK wants to merge 1 commit into
mainfrom
tiers-native
Closed

TrapsterDK wants to merge 1 commit into
mainfrom
tiers-native

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Standard tier now equals each tool's own default. Nothing was built or run; the verify pass follows.

Per tool (standard vs default):

  • clang-tidy: was 300+ explicit checks with WarningsAsErrors. Now clang-diagnostic-*,clang-analyzer-*, no WarningsAsErrors. Strict gains clang-diagnostic-* so it is a superset. Strict still disables clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling (a default check; it pushes non-portable Annex K functions, so idiom-fighting). https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
  • ruff 0.17.4: was a custom select/ignore list. Now an empty config, so ruff's built-in default rule set applies. https://github.com/astral-sh/ruff/blob/0.17.4/crates/ruff_linter/src/settings/mod.rs (DEFAULT_SELECTORS). Strict (ALL) already contains it.
  • ty 0.0.100: was ~130 rule levels plus error-on-warning. Now empty. Strict (all = "error") is unchanged.
  • pydoclint: standard was already the default (numpy, skip short docstrings, check-arg-order); only the comment went. https://github.com/jsh9/pydoclint/blob/main/docs/config_options.md
  • govet: standard now runs the go vet suite (golang.org/x/tools/go/analysis/suite/vet), which includes scannererr and sqlrowserr. atomicalign, deepequalerrors, httpmux, nilness, reflectvaluecompare, sortslice and unusedwrite moved from standard to strict only. https://go.googlesource.com/go/+/go1.27.4/src/cmd/vet/main.go
  • staticcheck v0.8.2: Go-side default was SA*,-SA9003,U1000. Now all minus the NonDefault analyzers (ST1000, ST1003, ST1016, ST1020, ST1021, ST1022, ST1023, SA9003), as staticcheck itself computes it; standard.conf is empty. https://staticcheck.dev/docs/configuration/
  • gopls: standard is {} (gopls defaults). gen.rs emits {} when the tier lists nothing. Strict output is unchanged.
  • cmakelint: standard is an empty rc (no filter). Strict keeps its filter that turns off linelength and whitespace checks, which are defaults; they fight gersemi's layout.

Docs: the standard page generator says an empty tier runs the tool default. docs/tiers-standard.md and docs/tiers-strict.md were edited by hand for cmakelint, pydoclint and ruff; regenerate with //docs:update_tiers to confirm.

Tests changed: cc/tests/clang_tidy_tiers.rs, tools/testing/clang_diagnostics_test.rs, govet_test.go, staticcheck checks_test.go, cli/adopt scaffold test, tools/docs/tiers unit test.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hxb7tMzRqzVaKmAvVT

…pydoclint, govet, staticcheck, gopls, cmakelint (part of #15298)
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Superseded by #15708: one strict config, no tiers.

@TrapsterDK TrapsterDK closed this Dec 4, 2026
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