Skip to content

Commit d6c5271

Browse files
committed
add qodana
1 parent d8d06c4 commit d6c5271

File tree

5 files changed

+93777
-0
lines changed

5 files changed

+93777
-0
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,52 @@ jobs:
4444
- name: Build plugin
4545
run: ./gradlew buildPlugin
4646

47+
# Run Qodana inspections and provide a report
48+
inspectCode:
49+
name: Inspect code
50+
needs: [ build ]
51+
runs-on: ubuntu-latest
52+
if: github.event_name == 'pull_request'
53+
54+
permissions:
55+
contents: write
56+
checks: write
57+
pull-requests: write
58+
steps:
59+
60+
# Free GitHub Actions Environment Disk Space
61+
- name: Maximize Build Space
62+
uses: jlumbroso/[email protected]
63+
with:
64+
tool-cache: false
65+
large-packages: false
66+
67+
# Check out the current repository
68+
- name: Fetch Sources
69+
uses: actions/checkout@v4
70+
with:
71+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
72+
fetch-depth: 0 # a full history is required for pull request analysis
73+
74+
# Set up the Java environment for the next steps
75+
- name: Setup Java
76+
uses: actions/setup-java@v4
77+
with:
78+
distribution: zulu
79+
java-version: 21
80+
81+
# Run Qodana inspections
82+
- name: Qodana - Code Inspection
83+
uses: JetBrains/[email protected]
84+
with:
85+
args: --baseline,./.qodana/baseline.sarif.json
86+
cache-default-branch-only: true
87+
88+
- name: Qodana - Publish Results
89+
uses: github/codeql-action/upload-sarif@v3
90+
with:
91+
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
92+
4793
# Run tests and upload a code coverage report
4894
test:
4995
name: Test (${{ matrix.os }})

.idea/dictionaries/project.xml

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)