원클릭으로
checkstyle
Check and fix Checkstyle violations in jhelm modules
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Check and fix Checkstyle violations in jhelm modules
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
jhelm project coding standards and conventions for Java 21 with Lombok and Maven
Implement a GitHub issue with branch and pull request workflow
Auto-format, fix violations, and run Maven validate (PMD + Checkstyle) in one step
jhelm project architecture and module structure for a Java Helm implementation
Code review automation for Java, TypeScript, JavaScript, Python, Go. Analyzes PRs for complexity and risk, checks code quality for SOLID violations and code smells, generates review reports. Use when reviewing pull requests, analyzing code quality, identifying issues, generating review checklists.
Check JaCoCo code coverage for jhelm modules
| name | checkstyle |
| description | Check and fix Checkstyle violations in jhelm modules |
| argument-hint | ["module"] |
| allowed-tools | Bash(./mvnw *), Bash(python3 *) |
maven-checkstyle-plugin 3.6.0 with spring-javaformat-checkstyle 0.0.43checkstyle-suppressions.xml in project rootvalidate phase (before compile)All modules:
./mvnw validate 2>&1 | grep -E "violations|ERROR.*\.java"
Specific module (e.g., /checkstyle jhelm-core):
./mvnw validate -pl $ARGUMENTS 2>&1 | grep "^\[ERROR\]"
Always run spring-javaformat:apply before checking violations — it fixes indentation/spacing automatically:
./mvnw spring-javaformat:apply
Run the persistent fix script:
python3 .claude/scripts/fix_violations.py .
This fixes: SpringCatch (e → ex), NeedBraces, SpringLambda (parens + block collapse), SpringTernary, and AvoidStarImport expansion.
| Violation | Fix |
|---|---|
InnerTypeLast | Move inner classes AFTER all methods |
SpringHideUtilityClassConstructor | Add private Constructor() {} AND make class final |
FinalClass | Add final to class declaration |
NestedIfDepth > 3 | Extract helper method or add to checkstyle-suppressions.xml |
SpringMethodVisibility (interface impl) | Add suppression to checkstyle-suppressions.xml |
AnnotationUseStyle trailing comma | Remove , before }) in @CsvSource etc. |
./mvnw spring-javaformat:apply && ./mvnw validate
case Boolean b -> b — do NOT add parens to switch pattern variables. Check if preceded by uppercase type name or case keyword.default -> value — do NOT add parens. default is a Java keyword.(args) -> condition ? a : b — the -> arrow is a boundary; the condition starts AFTER ->. Do NOT wrap the lambda params in the ternary condition.== vs = in find_condition_start: When scanning backward for ternary condition start, == at position i has line[i-1]='=' — skip it. AND line[i+1]='=' also means it's ==, skip.removeIf(r ->): r is preceded by ( from the method call, NOT from lambda parens. Check if char AFTER identifier is ) to detect already-parenthesized.Base64, BufferedInputStream, VersionInfo, etc. that may not be in the predefined class lists.checkstyle-suppressions.xml)Located at project root. Current suppressions:
SpringHeader, SpringTestFileName, JavadocPackage — project conventions differRegexpSinglelineJava — JUnit 5 assertions used instead of AssertJSpringImportOrder — handled by spring-javaformat:applyRequireThis — not enforced in this projectJavadoc* and SpringJavadoc — not requiredSpringMethodVisibility for KpsComparisonTest.java — TrustManager interface requires publicNestedIfDepth for RepoManager.java — intentional deep YAML parsing