mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 22:24:42 +07:00
Move detekt configs to workflow (#11899)
* Move detekt configs to workflow * Update documentation
This commit is contained in:
parent
2ea40c7cde
commit
1155aec310
4
.github/workflows/detektAnalysis.yml
vendored
4
.github/workflows/detektAnalysis.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user