Skip to content

fix: make --fail-on-warnings respect filters by default#893

Merged
set-soft merged 1 commit into
INTI-CMNB:devfrom
oliv3r:filtered_warnings
Feb 5, 2026
Merged

fix: make --fail-on-warnings respect filters by default#893
set-soft merged 1 commit into
INTI-CMNB:devfrom
oliv3r:filtered_warnings

Conversation

@oliv3r

@oliv3r oliv3r commented Feb 4, 2026

Copy link
Copy Markdown

The current implementation of --fail-on-warnings triggers a failure (39)
on any warning, ignoring the filtering system.

This change aligns --fail-on-warnings with the logic of --fail-on-ignored (-F).

  • By default, only unfiltered (unique) warnings trigger a failure.
  • If --fail-on-ignored is active, any warning (including filtered
    ones) will trigger the failure.

See #828

@oliv3r oliv3r force-pushed the filtered_warnings branch from 57e08fd to ebb0c98 Compare February 4, 2026 16:47
@oliv3r oliv3r marked this pull request as draft February 4, 2026 16:49
The current implementation of `--fail-on-warnings` triggers a failure (39)
on any warning, ignoring the filtering system.

This change aligns `--fail-on-warnings` with the logic of
`--fail-on-ignored` (-F).
* By default, only unfiltered (unique) warnings trigger a failure.
* If `--fail-on-ignored` is active, any warning (including filtered
   ones) will trigger the failure.

See INTI-CMNB#828

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
@oliv3r oliv3r force-pushed the filtered_warnings branch from ebb0c98 to 7648d4e Compare February 4, 2026 16:53
@oliv3r oliv3r marked this pull request as ready for review February 4, 2026 16:54
@set-soft

set-soft commented Feb 5, 2026

Copy link
Copy Markdown
Member

Ok, this is coherent with the help.
But also needs some clarification.

@set-soft set-soft merged commit 78f409a into INTI-CMNB:dev Feb 5, 2026
20 checks passed
@oliv3r oliv3r deleted the filtered_warnings branch February 5, 2026 19:15
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.

2 participants