Skip to content

feat(configuration): add linter.minimumSeverity - #11598

Draft
RodrigoHamuy wants to merge 2 commits into
biomejs:nextfrom
RodrigoHamuy:feat/linter-minimum-severity
Draft

RodrigoHamuy wants to merge 2 commits into
biomejs:nextfrom
RodrigoHamuy:feat/linter-minimum-severity

Conversation

@RodrigoHamuy

Copy link
Copy Markdown

Summary

Follow-up to #7582 (reply in thread), supersedes #11579.

Adds linter.minimumSeverity (info | warn | error, default info). Lint rules that would emit below the threshold are raised to it; higher configured severities are kept. Also available in overrides[].linter.

Applied where lint rule severities are already resolved, so it only affects lint/* diagnostics. Non-rule information diagnostics (schema version mismatch, unparseable files, verbose output) are unaffected — covered by a test.

Test Plan

  • linter_minimum_severity_* tests in crates/biome_cli/tests/commands/lint.rs
  • cargo test -p biome_cli passes

AI disclosure

This PR was written primarily by Claude Code, reviewed by me.

@agentscanapp

agentscanapp Bot commented Sep 2, 2026

Copy link
Copy Markdown

A maintainer will take a look as soon as they can. In the meantime, please make sure that:

  • the description follows our PR template
  • any related issues are linked
  • existing tests still pass

@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 760e4e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Minor
@biomejs/cli-darwin-arm64 Minor
@biomejs/cli-darwin-x64 Minor
@biomejs/cli-linux-arm64-musl Minor
@biomejs/cli-linux-arm64 Minor
@biomejs/cli-linux-x64-musl Minor
@biomejs/cli-linux-x64 Minor
@biomejs/cli-win32-arm64 Minor
@biomejs/cli-win32-x64 Minor
@biomejs/wasm-bundler Minor
@biomejs/wasm-nodejs Minor
@biomejs/wasm-web Minor
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@agentscanapp

agentscanapp Bot commented Sep 2, 2026

Copy link
Copy Markdown

Insufficient data

Not enough activity yet to make a reliable assessment.

View full analysis →

This is an automated analysis by AgentScan

@github-actions github-actions Bot added A-CLI Area: CLI A-Project Area: project labels Sep 2, 2026
Adds an option to the linter that raises the severity of every lint rule
emitting a diagnostic below the given threshold. It accepts `info` (the
default, which preserves the current behavior), `warn` and `error`, and
can also be set inside `overrides`.

The threshold is applied where the linter already resolves rule
severities, so it only affects diagnostics emitted by lint rules.
Diagnostics that don't belong to a rule, such as the ones emitted for an
outdated configuration schema or for a file Biome can't parse, keep their
own severity.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@RodrigoHamuy
RodrigoHamuy force-pushed the feat/linter-minimum-severity branch from 0779d48 to bbf476a Compare September 2, 2026 11:57

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CLI Area: CLI A-Project Area: project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant