Skip to content

Commit 49dafa7

Browse files
Merge main into feature/disable-sspc
2 parents 98e7d37 + 7e12dd3 commit 49dafa7

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
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).
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

qodana.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ include:
6161
- name: SimplifiableServiceRetrieving
6262
- name: QuickFixGetFamilyNameViolation
6363
- name: TokenSetInParserDefinition
64+
- name: DuplicatedCode

0 commit comments

Comments
 (0)