mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 00:09:23 +07:00
Move detekt configs to workflow (#11899)
* Move detekt configs to workflow * Update documentation
This commit is contained in:
4
.github/workflows/detektAnalysis.yml
vendored
4
.github/workflows/detektAnalysis.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
detekt_version: '1.23.4'
|
detekt_version: '1.23.4'
|
||||||
|
|
||||||
- name: Detekt errors
|
- 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
|
- 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
|
- 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`.
|
- 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 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 detekt/config/detekt-errors.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`
|
- The report will be generated in `detekt/reports.html`
|
||||||
|
|
||||||
### UncivServer
|
### UncivServer
|
||||||
|
Reference in New Issue
Block a user