Skip to content

severity: enabled rules never report info; floor plus ratchet - #14696

Merged
TrapsterDK merged 2 commits into
mainfrom
cloud/14685
Nov 23, 2026
Merged

TrapsterDK merged 2 commits into
mainfrom
cloud/14685

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Closes #14685

  • severity(default, categories, floor): with no matching category and no default, resolve returns parsed raised to floor. The generator emits floor in severity_gen.rs; tools_registry.bzl is regenerated.
  • floor = "warning" on dart, weeder, psscriptanalyzer, julialint, cfn_lint, trivy_config, trivy_image_config, zizmor, scalafix and qmllint.
  • clang_tidy: INFO_RULES is gone, and clang-diagnostic- maps to warning. staticcheck: the U1000 parser branch is gone (the map already sets U1000 to warning).
  • phpstan: the phpstan/public. → info entry is gone.
  • Ratchets in core/quality/adapter/src/severity.rs, which read the parser sources as test data:
    • Every parser that reports ToolSeverity::Info has a TOOL_SEVERITIES entry, or is a hint parser (hlint, vale) or a shared parser (mod.rs, jvm_diagnostics.rs, sarif.rs), each listed with a reason.
    • No parser declares an INFO_RULES/WARNING_RULES/ERROR_RULES-style level list.
  • New resolve tests: the floor raises info but keeps higher levels, and a mapped category wins over the floor.

Tested: //core/quality/adapter:all, //tools/quality:all, //core/quality:all (108 tests) and //core/quality/runner:all (3 tests) all passed. tools/dx check --apply on the 18 touched files, then tools/dx check: no findings.


Generated by Claude Code

severity() takes a floor: a rule with no category and no default
reports at least that level. dart, weeder, psscriptanalyzer,
julialint, cfn_lint, trivy_config, trivy_image_config, zizmor,
scalafix and qmllint get floor = "warning".

The clang_tidy INFO_RULES list and the staticcheck U1000 branch go;
clang-diagnostic- maps to warning and phpstan/public. no longer maps
to info. Two adapter tests ratchet this: every parser that reports
Info has a severity map (hlint and vale are hint parsers), and no
parser declares a level rule list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hyZ9rYuLE3bSY5Dn6T
…58 at warning (#14685)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hyZ9rYuLE3bSY5Dn6T

TrapsterDK commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator Author

a12d979 fixes shards 5 and 8. The trivy_config floor now reports AWS-0017 and AZU-0058 at warning, so I re-accepted matrix_terraform_trivy_lint_fail and matrix_bicep_trivy_lint_fail. Locally, all of //core/quality/testdata:all passes: 696 tests. The only 6 that didn't run fail to build zanuda with dune in the container.

The other red shards aren't this PR's:

  • Shard 4: //cli/generate:dx_generate_test (render_tests::renders_rust), //config:workspace_policy, //core/modules/tests:loaders_test (every_non_dev_bazel_dep_has_a_consumer), //core/modules:consumer_deps_test and //core/modules:versions_contract all fail on main 4d1324d locally. dx_generate_test fails the same single test on this branch.
  • Shard 10, //core/tests:pins: fails the same way on main 4d1324d locally (julia_src_libllvm url names the version, and the same for libunwind and libuv).
  • Shard 13, //elixir/tests/conformance:coverage_test (subject_matches_mode): fails on main 4d1324d locally.
  • Shard 15: //gazelle/csharp:generation_test, //gazelle/julia:stdlib_test and //gazelle/ocaml:ocaml_test all fail on main 4d1324d locally.
  • Shard 24: 16 //tools/ci guard tests plus site_shard_test, languages_test and dx_docs_typescript_extract_test. I reproduced all 19 locally, and none of their logs names a file this PR touches. They are allowlist drifts on files outside the diff. For example, host_env_test flags cli/prebuilt/bundle.bzl and deploy/private/deploy_fixture.sh, and zero_compat_test flags cli/shim/src/run.rs and core/quality/runner/src/real.rs.
  • Shard 25: apple_consumer_test, dart_consumer_test and module_extension_srcs_test also fail on deploy: typed MavenError in maven.rs (part of #13809) #14694, which only touches maven.rs, and module_extension_srcs_test fails on main when run locally. language_skeleton_test is a known main failure. root_module_test and dx_nested_test are nested-Bazel tests that can't run in the cloud container.
  • Shard 11, //csharp/tests/fixtures/xunit:csharp_coverage_test_on: a C# coverage test. No severity table or parser this PR changes applies to it.

Generated by Claude Code

@TrapsterDK
TrapsterDK merged commit 7185c20 into main Nov 23, 2026
24 of 31 checks passed
@TrapsterDK
TrapsterDK deleted the cloud/14685 branch November 23, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

train Tested; land via merge train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

severity: enabled rules never report info; floor plus ratchet

2 participants