Skip to content

Commit b69d950

Browse files
sacOO7claude
andcommitted
Add CLAUDE.md with pre-push verification guidance
Document running :java:checkstyleMain (Java-only, easy to miss) and module compile tasks before committing/pushing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 863f1f6 commit b69d950

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# CLAUDE.md
2+
3+
Guidance for Claude Code when working in this repository.
4+
5+
## Before committing / pushing
6+
7+
Run the relevant checks locally first — CI enforces them and a failure means another round-trip.
8+
9+
- **Java changes** (`lib/`, i.e. the `:java` module): run **both**
10+
```
11+
./gradlew :java:compileJava :java:checkstyleMain
12+
```
13+
Checkstyle is Java-only and is easy to miss because compilation alone passes. Common gotcha: **no star imports**`import com.google.gson.*;` fails `AvoidStarImport`; list each type explicitly.
14+
- **Kotlin changes** (`liveobjects/`): run
15+
```
16+
./gradlew :liveobjects:compileKotlin
17+
```
18+
(No Kotlin linter is configured, so compilation is the gate.)
19+
20+
When a change spans both, run all three tasks before pushing.

0 commit comments

Comments
 (0)