Skip to content

Commit e9d5d6b

Browse files
jeremymailenJeremy Mailen
andauthored
Claude Code configuration (#445)
Co-authored-by: Jeremy Mailen <[email protected]>
1 parent b690ae3 commit e9d5d6b

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Please analyze and fix the GitHub issue: $ARGUMENTS.
2+
3+
Follow these steps:
4+
5+
1. Use `gh issue view` to get the issue details
6+
2. Understand the problem described in the issue
7+
3. Search the codebase for relevant files
8+
4. Implement the necessary changes to fix the issue
9+
5. Write and run tests to verify the fix
10+
6. Ensure code passes linting and type checking
11+
7. Create a descriptive commit message
12+
13+
Remember to use the GitHub CLI (`gh`) for all GitHub-related tasks.

CLAUDE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
5+
## Build and Test Commands
6+
7+
- Build project: `./gradlew build`
8+
- Run all tests: `./gradlew test`
9+
- Run a single test: `./gradlew test --tests "org.jmailen.gradle.kotlinter.functional.KotlinProjectTest.testName"`
10+
- Run integration tests projects (from test-project* directories): `../gradlew lintKotlin formatKotlin`
11+
- Lint Kotlin code: `./gradlew lintKotlin`
12+
- Format Kotlin code: `./gradlew formatKotlin`
13+
- Lint specific source set: `./gradlew lintKotlinMain`
14+
- Format specific source set: `./gradlew formatKotlinMain`
15+
16+
## Code Style Guidelines
17+
18+
- Kotlin code follows ktlint rules with editorconfig customizations
19+
- Max line length: 140 characters
20+
- Indentation: 4 spaces
21+
- New line at EOF required
22+
- Trailing commas allowed in declarations and function calls
23+
- Imports follow ktlint standard ordering
24+
- Use kotlinter extension for configuration in Gradle projects
25+
- Tests use JUnit 5 (Jupiter) assertions
26+
- Functional tests extend `WithGradleTest` for Gradle TestKit integration
27+
- Error handling uses custom `KotlinterError` and `LintFailure` classes
28+
- When adding features, ensure backward compatibility as this is a Gradle plugin

0 commit comments

Comments
 (0)