Repository navigation
severity: enabled rules never report info; floor plus ratchet - #14696
Merged
Merged
Conversation
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
This was referenced Nov 22, 2026
…58 at warning (#14685) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyZ9rYuLE3bSY5Dn6T
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 The other red shards aren't this PR's:
Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #14685
severity(default, categories, floor): with no matching category and no default,resolvereturnsparsedraised tofloor. The generator emitsfloorinseverity_gen.rs;tools_registry.bzlis regenerated.floor = "warning"on dart, weeder, psscriptanalyzer, julialint, cfn_lint, trivy_config, trivy_image_config, zizmor, scalafix and qmllint.INFO_RULESis gone, andclang-diagnostic-maps to warning. staticcheck: the U1000 parser branch is gone (the map already sets U1000 to warning).phpstan/public.→ info entry is gone.core/quality/adapter/src/severity.rs, which read the parser sources as test data:ToolSeverity::Infohas aTOOL_SEVERITIESentry, or is a hint parser (hlint, vale) or a shared parser (mod.rs, jvm_diagnostics.rs, sarif.rs), each listed with a reason.INFO_RULES/WARNING_RULES/ERROR_RULES-style level list.resolvetests: 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 --applyon the 18 touched files, thentools/dx check: no findings.Generated by Claude Code