gnodet opened a new pull request, #13986: URL: https://github.com/apache/maven/pull/13986
## Summary - Disable `parseSCMIgnoresAsExcludes` in the RAT plugin configuration to work around a performance bug in RAT 0.18 - Add `**/.gitignore` to the explicit exclude list (previously covered by the STANDARD_SCMS collection which is tied to the SCM ignore parsing) ## Problem RAT 0.18's `parseSCMIgnoresAsExcludes` feature (enabled by default) recursively walks the **entire** directory tree looking for `.gitignore` files via `AbstractFileProcessorBuilder.checkDirectory()`. This traversal does not respect any exclusion patterns — not even the `HIDDEN_DIR` default exclusion. When hidden directories like `.claude/worktrees/` contain large git worktree trees (e.g. 370k+ files across 27 worktrees in the Maven project), RAT hangs during the `.gitignore` discovery phase before the actual license scan even begins. ## Upstream fix https://github.com/apache/creadur-rat/pull/773 fixes this in RAT by skipping hidden directories during the SCM ignore file discovery walk. Once a RAT release includes that fix, `parseSCMIgnoresAsExcludes` can be re-enabled and the `**/.gitignore` exclude removed. ## Test plan - [x] `mvn apache-rat:check -pl . -N` completes in ~3s (previously hung indefinitely) - [x] No new RAT violations introduced _Claude Code on behalf of Guillaume Nodet_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
