efegokdemir opened a new pull request, #712:
URL: https://github.com/apache/maven-checkstyle-plugin/pull/712

   ## Summary
   
   POM-only projects do not need Checkstyle analysis artifacts when no 
configured source or resource files match. This change skips the check goal 
before creating output, cache, configuration, or header files when there is 
nothing to process.
   
   ## Changes
   
   - Detect matching source, test-source, and enabled resource files before 
starting Checkstyle.
   - Add a regression test covering an empty project and asserting no 
Checkstyle artifacts are created.
   
   ## Testing
   
   - `mvn -Dspotless.check.skip=true -Dspotless.apply.skip=true 
-Dtest=CheckstyleViolationCheckMojoTest#testNoSourceDoesNotCreateOutputFiles 
test` — passed
   - `mvn -Dspotless.check.skip=true -Dspotless.apply.skip=true test` — passed 
(27 tests, 1 skipped)
   - `git diff --check` — passed
   - `mvn -Dspotless.check.skip=true -Dspotless.apply.skip=true -Prun-its 
verify` — interrupted after confirming the affected integration scenarios; 
remaining Invoker scenarios are blocked by Groovy's Java 27 class-file 
compatibility (`Unsupported class file major version 71`)
   
   Fixes #341
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to