Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Introduce parameter failOnMismatchedAllowedViolationsCount

Open
#174 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@NathanEckert is already working on this.

Since Jan 27, 2025.

  • #165 by @NathanEckert — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Review the associated pull request at https://github.com/apache/maven-checkstyle-plugin/pull/165 to understand the proposed parameter and its current status. The change is done when the Maven Checkstyle Plugin can fail when the violation count differs from maxAllowedViolations, preventing both unreported new violations and an outdated allowance.

Written by the indexing model from the issue text.

Description

enhancement
New feature, improvement proposal

Associated PR: https://github.com/apache/maven-checkstyle-plugin/pull/165

Introduce a parameter to fail the build when the number of violations is not equal to maxAllowedViolations

This prevents the following scenario:

  • some changes reduce the checkstyle count but maxAllowedViolations is not updated
  • some other changes introduces new violations but the build does not fail, as the count left some margin for error, when we would like to avoid introducing new failures
Dominant language
Java
Stars
98
Forks
69
Avg merge
2d 11h
Merged PRs (30d)
8

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-checkstyle-plugin

All issues in apache/maven-checkstyle-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.