Add Qodana configuration

This commit is contained in:
Saimir Gasa 2023-07-21 17:22:54 +02:00
parent 0a529015bc
commit 300fbfb6b0
2 changed files with 21 additions and 0 deletions

View file

@ -27,3 +27,20 @@ jobs:
cache: maven
- name: Build with Maven Wrapper
run: ./mvnw -B package
qodana:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.2
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below

4
qodana.yml Normal file
View file

@ -0,0 +1,4 @@
version: 1.0
linter: jetbrains/qodana-jvm:latest
profile:
name: qodana.recommended