Skip to main content

detekt

Use this skill when the user wants static analysis for Kotlin code — detect code smells, complexity, style violations, and generate reports for CI pipelines.

소스 정보

저장소
javimosch/supercli
최근 소스 활동
2026년 7월 21일 00:50
감지된 SKILL.md 언어
영어
스타
51
포크
7

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
detekt
description
Use this skill when the user wants static analysis for Kotlin code — detect code smells, complexity, style violations, and generate reports for CI pipelines.
# detekt Plugin Static analysis for Kotlin and Gradle projects. Enforces style rules, flags complexity and smells, and integrates with CI via SARIF/XML/TXT reports. ## Installation ```bash brew install detekt # or via Gradle plugin in build.gradle.kts: # plugins { id("io.gitlab.arturbosch.detekt") version "1.23.7" } ``` Download CLI jars from [GitHub Releases](https://github.com/detekt/detekt/releases). ## Basic Usage ```bash # Analyze a Kotlin project directory detekt --input src/ # Use a custom ruleset config detekt --config detekt.yml --input . # Generate a report for CI detekt --input src/ --report xml:build/detekt.xml # Auto-correct fixable issues detekt --input src/ --auto-correct ``` ## Common Patterns ```bash # Baseline existing issues (ignore legacy debt) detekt --create-baseline --baseline detekt-baseline.xml --input src/ detekt --baseline detekt-baseline.xml --input src/ # Fail build on findings detekt --input src/ --fail-on-max-issues 0 # Gradle wrapper (typical in Kotlin repos) ./gradlew detekt ``` ## Usage Examples - "Run detekt on this Kotlin module" - "Generate an XML report for CI" - "Check for code smells before opening a PR" ## SuperCLI ```bash sc detekt _ _ --input src/ sc detekt _ _ --config detekt.yml --input . sc plugins learn detekt ```
GitHub에서 보기