tidy up config #1580
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: detekt | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "*.md" | |
- "build.gradle.kts" | |
- "gradle.properties" | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- "*.md" | |
- "build.gradle.kts" | |
- "gradle.properties" | |
jobs: | |
detekt: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Detekt Codesmell | |
uses: natiginfo/[email protected] | |
with: | |
args: > | |
-r sarif:reports/detekt.json | |
-r txt:reports/detekt.txt | |
--jvm-target 16 | |
--build-upon-default-config | |
--config .github/detekt/detekt-config.yml | |
- name: Detekt results Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
# Path to SARIF file relative to the root of the repository | |
sarif_file: reports/detekt.json |