This project integrates automated static code analysis using GitHub Actions to ensure high code quality and enforce coding standards.
| Tool | Description |
|---|---|
| Detekt | Kotlin static code analysis tool |
| Android Lint | Android-specific linting |
| Danger | Provides inline PR comments in GitHub |
Analysis is triggered on every push or pull_request to the main branch.
- Command:
./gradlew detekt - Merges with:
mergeDetektSarifReports - Report:
build/reports/detekt/merged-detekt-report.sarif
- Command:
./gradlew lint - Merges with:
mergeLintReports - Report:
build/reports/lint/merged-lint-report.xml
- Parses reports
- Posts inline PR feedback using GitHub API
To run checks locally:
./gradlew detekt- Output:
build/reports/detekt/
./gradlew lint- Output:
build/reports/lint/
./gradlew mergeDetektSarifReports mergeLintReports| Tool | Format | Path |
|---|---|---|
| Detekt | SARIF | build/reports/detekt/merged-detekt-report.sarif |
| Android Lint | XML | build/reports/lint/merged-lint-report.xml |
Install dependencies and execute Danger manually:
gem install bundler
bundle install
bundle exec dangerDANGER_GITHUB_API_TOKEN in your environment or GitHub Secrets for Danger to work.