File tree Expand file tree Collapse file tree 4 files changed +63
-0
lines changed
qodana-configs/duplicated-code Expand file tree Collapse file tree 4 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Qodana - Duplicated Code
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches : [ main, feature/** ]
7
+ pull_request :
8
+ branches : [ '**' ]
9
+
10
+ concurrency :
11
+ group : ${{ github.workflow }}${{ github.event.pull_request.number || github.ref }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ qodana :
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : read
19
+ # PR check
20
+ checks : write
21
+ # PR comments
22
+ pull-requests : write
23
+ # SARIF upload
24
+ security-events : write
25
+ steps :
26
+ - uses : actions/checkout@v4
27
+ with :
28
+ ref : ${{ github.event.pull_request.head.sha }}
29
+ fetch-depth : 0
30
+ - name : Maximize Build Space
31
+ if : runner.os == 'Linux'
32
+ uses : jlumbroso/free-disk-space@main
33
+ with :
34
+ tool-cache : false
35
+ large-packages : false
36
+ - name : ' Qodana Scan'
37
+ uses : JetBrains/qodana-action@v2024.2.3
38
+ env :
39
+ QODANA_TOKEN : ${{ secrets.QODANA_TOKEN }}
40
+ with :
41
+ # --config points to the DuplicatedCode-only Qodana config
42
+ args :
43
+ --config,${{ github.workspace }}/qodana-configs/duplicated-code/qodana.yaml
44
+ cache-default-branch-only : true
45
+ # pr-mode off means that the whole repo should be checked for duplicate code, instead of just copy/pastes within the PR
46
+ pr-mode : false
47
+ - uses : github/codeql-action/upload-sarif@v3
48
+ with :
49
+ sarif_file : ${{ runner.temp }}/qodana/results/qodana.sarif.json
Original file line number Diff line number Diff line change
1
+ # Duplicated Code Check
2
+
3
+ This check only runs the Qodana DuplicatedCode check and should post duplicated code to [ Github PRs] ( ../../.github/workflows/qodana-check-duplicatedcode.yml ) .
Original file line number Diff line number Diff line change
1
+ version : 1.0
2
+ linter : jetbrains/qodana-jvm-community:latest
3
+ projectJDK : " 21"
4
+ bootstrap : ./gradlew :plugin-core:sdk-codegen:generateSdks :plugin-core:jetbrains-community:generateTelemetry :plugin-toolkit:jetbrains-rider:generateModels
5
+ exclude :
6
+ - name : All
7
+ dot-net :
8
+ solution : ReSharper.AWS.sln
9
+ include :
10
+ - name : DuplicatedCode
Original file line number Diff line number Diff line change @@ -61,3 +61,4 @@ include:
61
61
- name : SimplifiableServiceRetrieving
62
62
- name : QuickFixGetFamilyNameViolation
63
63
- name : TokenSetInParserDefinition
64
+ - name : DuplicatedCode
You can’t perform that action at this time.
0 commit comments