Skip to content
Development
Command

/check

Run static analysis on the Java project — detects configured tools (Checkstyle, SpotBugs, PMD) and reports findings

From plugin
claude-java-plugins
175 skills6 agents5 commands
Install
$ npx -y skills add ducpm2303/claude-java-plugins --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/check

Context preview

What this command does when you run it.

Run static analysis on the Java project — detects configured tools (Checkstyle, SpotBugs, PMD) and reports findings

Command definition

check.md
description: Run static analysis on the Java project — detects configured tools (Checkstyle, SpotBugs, PMD) and reports findings

/java-core:check

Run static analysis and code quality checks on the project.

Instructions

1. **Detect configured tools** by scanning `pom.xml` or `build.gradle` for:

  • Checkstyle (`maven-checkstyle-plugin` / `checkstyle` plugin)
  • SpotBugs (`spotbugs-maven-plugin` / `com.github.spotbugs`)
  • PMD (`maven-pmd-plugin` / `pmd` plugin)
  • SonarQube (`sonar-maven-plugin` / `sonarqube` plugin)

2. **Run available tools**:

  • Maven: `mvn checkstyle:check`, `mvn spotbugs:check`, `mvn pmd:check`
  • Gradle: `./gradlew checkstyleMain`, `./gradlew spotbugsMain`, `./gradlew pmdMain`

3. If **no tools configured**:

  • Run a manual review of the current file or recent changes using `/java-core:java-review`
  • Suggest adding Checkstyle to `pom.xml` or `build.gradle`

4. **Report findings** grouped by severity:

  • CRITICAL / HIGH: Show file:line, rule name, and description
  • MEDIUM / LOW: Summarize counts by category

5. If findings exceed 10 items, show the top 10 by severity and summarize the rest.

Ships withclaude-java-plugins

A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.

Get the whole plugin, auto-invoked
Stats
17
Stars
0
Views
0
Forks
Maintained
Maintenance
Shell
Language
4mo ago
Last commit
4mo ago
Created

Repo: ducpm2303/claude-java-plugins