Spring Boot 项目的验证循环:构建、静态分析、带有覆盖率的测试、安全扫描以及发布或 PR 前的差异审查。
66
80%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./docs/ja-JP/skills/springboot-verification/SKILL.md在提交 PR、发生重大变更后或部署前执行。
mvn -T 4 clean verify -DskipTests
# 或者
./gradlew clean assemble -x test如果构建失败,请停止并修复问题。
Maven(常用插件):
mvn -T 4 spotbugs:check pmd:check checkstyle:checkGradle(如果已配置):
./gradlew checkstyleMain pmdMain spotbugsMainmvn -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 spotlessApplygit diff --stat
git diff检查清单:
System.out、无级别保护的 log.debug)验证报告
===================
构建: [通过/未通过]
静态分析: [通过/未通过] (spotbugs/pmd/checkstyle)
测试: [通过/未通过] (X/Y 通过, Z% 覆盖率)
安全: [通过/未通过] (发现 CVE: N)
差异: [X 个文件变更]
整体状态: [就绪 / 未完成]
需要修复的问题:
1. ...
2. ...mvn -T 4 test + spotbugs 获取快速反馈。注意:及时的反馈优于迟来的意外。请保持门禁(Gates)严格,并在生产系统中将警告视为缺陷。
dfbf946
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.