Skip to content

Commit 3b14193

Browse files
committed
[SPARK-56117] Make spotless ignore .claude directory
### What changes were proposed in this pull request? This PR adds `.claude/**` to the Spotless `targetExclude` patterns in `build.gradle` for both Java formatting (in the `allprojects` block) and misc formatting (at the root level). ### Why are the changes needed? The `.claude/` directory (used by Claude Code for worktrees, plans, and other metadata) contains files that should not be subject to Spotless formatting checks. Without this exclusion, Spotless may report false positives on files within `.claude/`. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs and `gradle spotlessCheck` passes successfully. BTW, the problem doesn't happen in the CI because it's a clean build without any Claude Code operations. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.6) Closes #566 from dongjoon-hyun/SPARK-56117. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 4641727 commit 3b14193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ subprojects {
129129
'org.apache.spark',
130130
)
131131
toggleOffOn()
132-
targetExclude "**/BaseResource.java"
132+
targetExclude "**/BaseResource.java", ".claude/**"
133133
trimTrailingWhitespace()
134134
removeUnusedImports()
135135
}
@@ -140,7 +140,7 @@ apply plugin: 'com.diffplug.spotless'
140140
spotless {
141141
format 'misc', {
142142
target '*.md', '*.gradle', '**/*.properties', '**/*.xml', '**/*.yaml', '**/*.yml'
143-
targetExclude "**/.idea/**"
143+
targetExclude "**/.idea/**", ".claude/**"
144144
endWithNewline()
145145
trimTrailingWhitespace()
146146
}

0 commit comments

Comments
 (0)