Skip to content

Commit 21575d1

Browse files
committed
Remove baseline
1 parent a3f7b2a commit 21575d1

File tree

3 files changed

+1
-80833
lines changed

3 files changed

+1
-80833
lines changed

.github/workflows/qodana-check-duplicatedcode.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ jobs:
3939
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
4040
with:
4141
# --config points to the DuplicatedCode-only Qodana config
42-
# --baseline points to the DuplicatedCode baseline to ensure that only new DuplicatedCode changes are found
43-
# --baseline-include-absent will make this test fail if duplicated code from the baseline is remediated, which calls for a rebaselining.
4442
args:
45-
--config,${{ github.workspace }}/qodana-configs/duplicated-code/qodana.yaml,--baseline,${{ github.workspace }}/qodana-configs/duplicated-code/qodana.sarif.json,--baseline-include-absent
43+
--config,${{ github.workspace }}/qodana-configs/duplicated-code/qodana.yaml
4644
cache-default-branch-only: true
4745
# pr-mode off means that the whole repo should be checked for duplicate code, instead of just copy/pastes within the PR
4846
pr-mode: false
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
# Duplicated Code Check
22

33
This check only runs the Qodana DuplicatedCode check and should post duplicated code to [Github PRs](../../.github/workflows/qodana-check-duplicatedcode.yml).
4-
5-
This code currently incorporates a [baseline file](qodana.sarif.json), so existing duplicated code won't fail CI.
6-
* As of July 2025, the GitHub Action will also trigger a failure if duplicates are _removed_ from the baseline, which should trigger a rebaselining.
7-
8-
## Updating the Baseline File
9-
* Locally: run the "Try Code Analysis with Qodana" action
10-
* Temporarily overwrite the full repo's `qodana.yaml` by pasting in the contents of this job's [`qodana.yaml`](qodana.yaml) file
11-
* After the job finishes, in the "Problems" panel:
12-
* Click "Server-Side Analysis" to view the Qodana output
13-
* Click the Globe icon to view the output in the browser
14-
* In the browser:
15-
* Click the "Select All" checkbox over the problem table
16-
* Click "Move selected to baseline"
17-
* In the IDE:
18-
* Overwrite the `qodana.sarif.json` file in this directory with the generated `qodana.sarif.json`
19-
* `git checkout qodana.yaml` to restore the full `qodana.yaml` config
20-
* Commit this `qodana.sarif.json` file along with your updated code

0 commit comments

Comments
 (0)