Help us improve
Share bugs, ideas, or general feedback.
From kotlin-development-assistant
Check Kotlin project for code quality issues and violations
npx claudepluginhub pluginagentmarketplace/custom-plugin-kotlin --plugin kotlin-assistantHow this command is triggered — by the user, by Claude, or both
Slash command
/kotlin-development-assistant:kotlin-checkThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Kotlin Check Command Analyze Kotlin project for code quality issues, style violations, and potential bugs. ## Synopsis ## Description Runs comprehensive code quality checks on Kotlin projects including: - **ktlint**: Code style and formatting violations - **detekt**: Static analysis for code smells - **Deprecated API**: Usage of deprecated Kotlin/Java APIs - **Null Safety**: Potential null pointer issues ## Arguments | Argument | Type | Default | Description | |----------|------|---------|-------------| | `path` | string | `.` | Target directory or file | | `--strict` | boolean | ...
/kotlin-reviewPerforms comprehensive Kotlin code review on modified .kt files via git diff: runs gradlew build/test, detekt, ktlintCheck; checks null safety, coroutines, security; generates severity-categorized report.
/kotlin-reviewReviews modified Kotlin files via git diff for idiomatic patterns, null safety, coroutines, and security. Runs gradlew build, detekt, ktlintCheck; generates severity-categorized report.
/lint-androidRuns Android Lint, Detekt, and ktlintCheck via Gradle for code quality analysis. Supports --fix flag to auto-format with ktlintFormat.
/checkRun static analysis on Java projects — detects Checkstyle, SpotBugs, PMD, SonarQube in pom.xml/build.gradle, executes checks, reports findings by severity.
Share bugs, ideas, or general feedback.
Analyze Kotlin project for code quality issues, style violations, and potential bugs.
/kotlin-check [path] [--strict] [--fix] [--format <format>]
Runs comprehensive code quality checks on Kotlin projects including:
| Argument | Type | Default | Description |
|---|---|---|---|
path | string | . | Target directory or file |
--strict | boolean | false | Fail on warnings |
--fix | boolean | false | Auto-fix issues |
--format | string | plain | Output format |
# Check entire project
/kotlin-check
# Check specific module with strict mode
/kotlin-check app/src/main --strict
# Auto-fix and output JSON
/kotlin-check --fix --format json
# Check single file
/kotlin-check src/main/kotlin/UserService.kt
| Check | Tool | Severity |
|---|---|---|
| Code formatting | ktlint | Warning |
| Naming conventions | ktlint | Warning |
| Code complexity | detekt | Error |
| Long methods | detekt | Warning |
| Deprecated usage | compiler | Warning |
| Null safety | compiler | Error |
| Code | Meaning | Action Required |
|---|---|---|
| 0 | No issues | None |
| 1 | Issues found | Review and fix violations |
| 2 | Config error | Check ktlint/detekt setup |
| 3 | Runtime error | Check logs for details |
| Issue | Cause | Resolution |
|---|---|---|
| "ktlint not found" | Missing dependency | Add id("org.jlleitschuh.gradle.ktlint") to plugins |
| "detekt not configured" | Missing config | Run ./gradlew detektGenerateConfig |
| Slow execution | Large codebase | Use path argument to scope check |
| False positives | Strict rules | Configure .editorconfig or detekt.yml |
Works with CI/CD pipelines:
# GitHub Actions
- name: Kotlin Check
run: ./gradlew ktlintCheck detekt