Move detekt configs to workflow (#11899)

* Move detekt configs to workflow

* Update documentation
This commit is contained in:
Yair Morgenstern 2024-07-01 22:55:53 +03:00 committed by GitHub
parent 2ea40c7cde
commit 1155aec310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ jobs:
detekt_version: '1.23.4'
- name: Detekt errors
run: detekt-cli --parallel --config detekt/config/detekt-errors.yml
run: detekt-cli --parallel --config .github/workflows/detekt_config/detekt-errors.yml
- name: Detekt warnings
run: detekt-cli --parallel --config detekt/config/detekt-warnings.yml
run: detekt-cli --parallel --config .github/workflows/detekt_config/detekt-warnings.yml

View File

@ -110,8 +110,8 @@ To generate Detekt reports:
- Download [detekt-cli](https://github.com/detekt/detekt/releases/latest) (the zip file) and unzip it
- Open a terminal in the Unciv root directory and run one of the following commands to generate the report. NOTE: If you're using Windows, replace `detekt-cli` with `detekt-cli.bat`.
- For warnings: `PATH/TO/DETEKT/detekt-cli --parallel --report html:detekt/reports.html --config detekt/config/detekt-warnings.yml`
- For errors: `PATH/TO/DETEKT/detekt-cli --parallel --report html:detekt/reports.html --config detekt/config/detekt-errors.yml`
- For warnings: `PATH/TO/DETEKT/detekt-cli --parallel --report html:detekt/reports.html --config .github/workflows/detekt_config/detekt-warnings.yml`
- For errors: `PATH/TO/DETEKT/detekt-cli --parallel --report html:detekt/reports.html --config .github/workflows/detekt_config/detekt-errors.yml`
- The report will be generated in `detekt/reports.html`
### UncivServer