apache / apache/maven-checkstyle-plugin

[MCHECKSTYLE-314] checkstyle:check should invoke the execution of this plugin's goal "checkstyle" prior to executing itself

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

Description

**[Roman Ivanov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=romani)** opened **[MCHECKSTYLE-314](https://issues.apache.org/jira/browse/MCHECKSTYLE-314?redirect=false)** and commented

I run into problem with using checkstyles goal "checkstyle:check" in sevntu.checkstyle project (https://github.com/sevntu-checkstyle/sevntu.checkstyle/blob/master/sevntu-checks/pom.xml#L75) as it always use default Sun config when I run "checkstyle:check", It took me a while to figure out why that does not work.

I had a habit and convenience to run in such a ways pmd and findbug, just "mvn pmd:check", "mvn findbug:check" it is human friendly.

PMD and Findbugs plugins already do this:
http://gleclaire.github.io/findbugs-maven-plugin/check-mojo.html
https://maven.apache.org/plugins/maven-pmd-plugin/check-mojo.html
search for "Invokes the execution of this plugin's goal"
vs
http://maven.apache.org/plugins/maven-checkstyle-plugin/check-mojo.html

Problem was also raised at : http://stackoverflow.com/questions/11106767/maven-checkstylecheck-not-working

Please add support of this, most users are not professionals in Maven. I use Maven for many years and it took me too much time to find a reason why it does not work.

---

**Affects:** 2.17

2 votes, 8 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the checkstyle:check goal and compare its documented behavior with the PMD and FindBugs check goals linked in the issue. The change is done when invoking checkstyle:check first runs this plugin's checkstyle goal, so the configured Checkstyle rules are used instead of the default Sun configuration.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.