Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.
PR前、大きな変更後、デプロイ前に実行します。
mvn -T 4 clean verify -DskipTests
# または
./gradlew clean assemble -x test
ビルドが失敗した場合は、停止して修正します。
Maven(一般的なプラグイン):
mvn -T 4 spotbugs:check pmd:check checkstyle:check
Gradle(設定されている場合):
./gradlew checkstyleMain pmdMain spotbugsMain
mvn -T 4 test
mvn jacoco:report # 80%以上のカバレッジを確認
# または
./gradlew test jacocoTestReport
レポート:
# 依存関係のCVE
mvn org.owasp:dependency-check-maven:check
# または
./gradlew dependencyCheckAnalyze
# シークレット(git)
git secrets --scan # 設定されている場合
mvn spotless:apply # Spotlessプラグインを使用している場合
./gradlew spotlessApply
git diff --stat
git diff
チェックリスト:
System.out、ガードなしの log.debug)検証レポート
===================
ビルド: [合格/不合格]
静的解析: [合格/不合格] (spotbugs/pmd/checkstyle)
テスト: [合格/不合格] (X/Y 合格, Z% カバレッジ)
セキュリティ: [合格/不合格] (CVE発見: N)
差分: [X ファイル変更]
全体: [準備完了 / 未完了]
修正が必要な問題:
1. ...
2. ...
mvn -T 4 test + spotbugs で迅速なフィードバック注意: 迅速なフィードバックは遅い驚きに勝ります。ゲートを厳格に保ち、本番システムでは警告を欠陥として扱います。
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/springboot-verification · pinned to the source commit
git clone https://github.com/affaan-m/ECC.git
cd ECC
git checkout d8409a4b0813771235555e32e3d8046a73988bfa
mkdir -p ".claude/skills/springboot-verification"
cp -r "docs/ja-JP/skills/springboot-verification" ".claude/skills/springboot-verification"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit d8409a4b0813. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.