apache / apache/maven-checkstyle-plugin

[MCHECKSTYLE-431] Avoid creating unnecessary target files for pom projects

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

Description

**[Alexis Jehan](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=alexisj)** opened **[MCHECKSTYLE-431](https://issues.apache.org/jira/browse/MCHECKSTYLE-431?redirect=false)** and commented

Because pom projects do not have Java code, It is not necessary to create "target/checkstyle-cachefile", "target/checkstyle-checker.xml", "target/checkstyle-result.xml" and "target/checkstyle-suppressions.xml" files for these projects.

Maven configuration:

```xml

org.apache.maven.plugins
maven-checkstyle-plugin
3.2.1


com.puppycrawl.tools
checkstyle
10.9.3



checkstyle.xml
checkstyle-suppressions.xml
true
info



checkstyle-check
validate

check


```

Maven output:

```
[INFO] --- checkstyle:3.2.1:check (checkstyle-check) @ parent-project ---
[INFO] You have 0 Checkstyle violations.
```

Content of the generated "target/checkstyle-result.xml":

```xml

```

---

**Affects:** 3.2.1

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Maven configuration and output for a pom project, then trace where target/checkstyle-cachefile, target/checkstyle-checker.xml, target/checkstyle-result.xml, and target/checkstyle-suppressions.xml are generated. Done means a pom project without Java code no longer creates these files while the check goal still runs successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.