Skip to content

Commit b6b676c

Browse files
Merge pull request #2 from sashaBazarov/qodana-automation-570552186
Add qodana CI checks
2 parents 397bc2c + 2a9ed5a commit b6b676c

File tree

2 files changed

+13
-34
lines changed

2 files changed

+13
-34
lines changed

.github/workflows/qodana_code_quality.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ on:
33
workflow_dispatch:
44
pull_request:
55
push:
6-
branches:
7-
- main
6+
branches: # Specify your branches here
7+
- main # The 'main' branch
8+
- 'releases/*' # The release branches
89

910
jobs:
1011
qodana:
@@ -16,9 +17,12 @@ jobs:
1617
steps:
1718
- uses: actions/checkout@v3
1819
with:
19-
ref: ${{ github.event.pull_request.head.sha }}
20-
fetch-depth: 0
20+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
21+
fetch-depth: 0 # a full history is required for pull request analysis
2122
- name: 'Qodana Scan'
2223
uses: JetBrains/qodana-action@v2025.1
24+
with:
25+
pr-mode: false
2326
env:
24-
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
27+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_1860495776 }}
28+
QODANA_ENDPOINT: 'https://qodana.cloud'

qodana.yaml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
1-
#-------------------------------------------------------------------------------#
2-
# Qodana analysis is configured by qodana.yaml file #
3-
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
4-
#-------------------------------------------------------------------------------#
51
version: "1.0"
6-
7-
#Specify inspection profile for code analysis
8-
profile:
9-
name: qodana.starter
10-
11-
#Enable inspections
12-
#include:
13-
# - name: <SomeEnabledInspectionId>
14-
15-
#Disable inspections
16-
#exclude:
17-
# - name: <SomeDisabledInspectionId>
18-
# paths:
19-
# - <path/where/not/run/inspection>
20-
21-
projectJDK: "21" #(Applied in CI/CD pipeline)
22-
23-
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
24-
#bootstrap: sh ./prepare-qodana.sh
25-
26-
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
27-
#plugins:
28-
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
29-
30-
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
312
linter: jetbrains/qodana-jvm:2025.1
3+
profile:
4+
name: qodana.recommended
5+
include:
6+
- name: CheckDependencyLicenses

0 commit comments

Comments
 (0)