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

[MCHECKSTYLE-420] includes is broken

Open
#332 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the reported configuration from the issue with the listed includes patterns against the affected 3.2.0 behavior. Trace how includes are interpreted and verify completion when Java files under src are checked while target files are excluded.

Written by the indexing model from the issue text.

Description

bug priority:major

Delany opened MCHECKSTYLE-420 and commented

I thought I could achieve MCHECKSTYLE-412 using includes

 

<configuration>
  <configLocation>${build.root}/checkstyle.xml</configLocation>
  <includes>src\/**\/*.java</includes>
</configuration> 

but I dont get any violations. Neither with any of

<includes>src/**/*.java</includes>
<includes>**/src/**/*.java</includes>
<includes>**\/src\/**\/*.java</includes>

I get 69 violations (files in src and target) using

 

<configuration>
  <configLocation>${build.root}/checkstyle.xml</configLocation>
  <includes>**\/*.java</includes>
</configuration> 

 


Affects: 3.2.0

Dominant language
Java
Stars
98
Forks
69
Avg merge
12h 42m
Merged PRs (30d)
6

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.