This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new 585b03dd76 Disable RAT SCM ignore file parsing to avoid traversal hang 
(#13986)
585b03dd76 is described below

commit 585b03dd76e66eb18476c19c916af8df11111f39
Author: Guillaume Nodet <[email protected]>
AuthorDate: Mon Nov 23 10:23:14 2026 +0100

    Disable RAT SCM ignore file parsing to avoid traversal hang (#13986)
    
    RAT 0.18's SCM ignore file discovery (parseSCMIgnoresAsExcludes)
    recursively walks the entire directory tree looking for .gitignore
    files without respecting any exclusion patterns. When hidden
    directories like .claude/worktrees/ contain large git worktree trees
    (e.g. 370k+ files across 27 worktrees), this causes RAT to hang
    during the discovery phase before the actual license scan even begins.
    
    Disable parseSCMIgnoresAsExcludes until the upstream fix lands:
    https://github.com/apache/creadur-rat/pull/773
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
 pom.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/pom.xml b/pom.xml
index b1d0336537..7a008bc3a1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -868,8 +868,20 @@ under the License.
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
           <configuration>
+            <!-- Workaround for https://github.com/apache/creadur-rat/pull/773:
+                 The SCM ignore file discovery walk traverses ALL directories
+                 (including hidden ones like .claude/ and .worktrees/) without
+                 respecting exclusion patterns, causing RAT to hang when large
+                 git worktree trees exist under hidden directories.
+                 Note: parseSCMIgnoresAsExcludes is deprecated in RAT 0.18, but
+                 the new API (inputExcludeStds) excludes path matchers only —
+                 NOT file processors — so it cannot suppress the traversal.
+                 This workaround will be removed once a RAT release includes 
the
+                 upstream fix from creadur-rat#773. -->
+            <parseSCMIgnoresAsExcludes>false</parseSCMIgnoresAsExcludes>
             <inputExcludes>
               <exclude>Jenkinsfile</exclude>
+              <exclude>**/.gitignore</exclude>
               <exclude>**/.gitattributes</exclude>
               <exclude>src/main/resources/META-INF/services/**</exclude>
               <exclude>src/test/resources*/**</exclude>

Reply via email to