Skip to content

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

Closed

Description

@TrapsterDK

An enabled rule never reports at info. Add a floor to severity(). Add ratchets so new parsers cannot leak info.

Where (origin/main 4d1324d)

  • core/quality/tool_defs.bzl:68-74: severity(default, categories), no floor.
  • core/quality/tools_gen.bzl: generator for the Rust table.
  • core/quality/adapter/src/severity.rs:12-29: resolve falls back to parsed.
  • core/quality/adapter/src/parsers/clang_tidy.rs:5-10, 91: INFO_RULES.
  • core/quality/adapter/src/parsers/staticcheck.rs:68: dead branch.
  • cc/private/quality/cc_tools.bzl:66: no clang-diagnostic- category.
  • core/quality/families/php_tools.bzl:32: "phpstan/public.": "info".
  • No severity map: dart, weeder, psscriptanalyzer, julialint, cfn_lint, trivy_config, trivy_image_config, zizmor, scalafix, qmllint.

Fix

  • severity(default, categories, floor). In resolve: no category and no default gives max(parsed, floor).
  • Delete INFO_RULES and staticcheck.rs:68.
  • Add "clang-diagnostic-": "warning" at cc_tools.bzl:66.
  • Drop the phpstan/public. entry.
  • floor = "warning" on dart, weeder, psscriptanalyzer, julialint, cfn_lint, trivy_config, trivy_image_config, zizmor, scalafix, qmllint.

Tests

  • severity.rs: resolve with a floor raises info to warning; a mapped category still wins.
  • Rust ratchet: every parser that emits ToolSeverity::Info has a map, or sits in a hint allowlist (hlint, vale, staticcheck QF) with a reason.
  • Ratchet: no parser declares a *_RULES level list.

Depends on

Nothing. Runs beside C1 (#14647). Land early.

Part of #14647

🤖 Generated with Claude Code

Activity

  1. added
    cloud-pool
    on Nov 22, 2026
  2. TrapsterDK commented on Nov 22, 2026

    @TrapsterDK
    CollaboratorAuthor

    cloud-claim 519791fd


    Generated by Claude Code

  3. added
    cloud-taken
    and removed
    cloud-pool
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloud-taken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions