apache / apache/maven-checkstyle-plugin

Add ability to print warnings when `failOnViolation: true` and `violationSeverity: error`

Open
#648 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
97
Forks
67
Avg merge
14h 50m
Merged PRs (30d)
6

Description

### New feature, improvement proposal

#### Currently

When there are errors and warnings, only errors are logged

#### Desired

Warnings should be logged, too

#### Current workaround

Add `consoleOutput: true`. However, this has the following undesired issues:

- No console format/colors
- It shows full path instead of relative path
- Errors appear again

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the handling of `failOnViolation`, `violationSeverity`, and the existing `consoleOutput` workaround in the Maven Checkstyle Plugin. Confirm how errors and warnings are currently logged; done means warnings also appear with the normal console format and relative paths, without duplicating errors.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.