在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用checkstyle
星标3
分支0
更新时间2026年4月18日 21:21
Check and fix Checkstyle and PMD violations
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Check and fix Checkstyle and PMD violations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement a GitHub issue with branch and pull request workflow
Post a status comment on a GitHub issue (starting work, plan update, completed)
Check JaCoCo code coverage
Format, validate checkstyle/PMD, and run tests before committing
Create/update GitHub issue, branch, commit, PR, then continue implementing
Scan code for security vulnerabilities (OWASP patterns, path traversal, injection risks)
| name | checkstyle |
| description | Check and fix Checkstyle and PMD violations |
| allowed-tools | Bash(./mvnw *), Bash(python3 *) |
spring-javaformat-maven-plugin 0.0.47 (tab indentation)maven-checkstyle-plugin 3.6.0 with spring-javaformat-checkstylemaven-pmd-plugin 3.28.0checkstyle-suppressions.xml in project rootpmd-ruleset.xml in project rootvalidate phase./mvnw validate 2>&1 | grep -E "violations|ERROR.*\.java|PMD Failure"
Always run spring-javaformat:apply before checking violations:
./mvnw spring-javaformat:apply
python3 .claude/scripts/fix_fqn.py .
| Violation | Fix |
|---|---|
SpringCatch | Rename catch (Exception e) to catch (Exception ex) |
NeedBraces | Add { } to single-line if/for/while |
SpringLambda parens | Wrap single lambda param: x -> becomes (x) -> |
SpringLambda block | Convert x -> { return expr; } to x -> expr |
SpringTernary | Wrap condition in parens: (cond) ? a : b |
AvoidStarImport | Replace import pkg.* with specific imports |
SpringHideUtilityClassConstructor | Add private constructor + final class |
AnnotationUseStyle trailing comma | Remove , before }) in annotations |
AppendCharacterWithChar | Use .append('x') not .append("x") for single chars |
MissingOverride | Add @Override on interface/superclass implementations |
./mvnw spring-javaformat:apply && ./mvnw validate