Skip to content

Commit 8d0f358

Browse files
committed
Qodana
1 parent 1975514 commit 8d0f358

2 files changed

Lines changed: 78 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#-------------------------------------------------------------------------------#
2+
# Discover additional configuration options in our documentation #
3+
# https://www.jetbrains.com/help/qodana/github.html #
4+
#-------------------------------------------------------------------------------#
5+
6+
name: Qodana
7+
on:
8+
workflow_dispatch:
9+
pull_request:
10+
push:
11+
branches:
12+
- dev
13+
- main
14+
15+
jobs:
16+
qodana:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
checks: write
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
ref: ${{ github.event.pull_request.head.sha }}
26+
fetch-depth: 0
27+
- name: 'Qodana Scan'
28+
uses: JetBrains/qodana-action@v2026.1
29+
env:
30+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
31+
with:
32+
# When pr-mode is set to true, Qodana analyzes only the files that have been changed
33+
pr-mode: false
34+
use-caches: true
35+
post-pr-comment: true
36+
use-annotations: true
37+
# Upload Qodana results (SARIF, other artifacts, logs) as an artifact to the job
38+
upload-result: false
39+
# quick-fixes available in Ultimate and Ultimate Plus plans
40+
push-fixes: 'none'

qodana.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#-------------------------------------------------------------------------------#
2+
# Qodana analysis is configured by qodana.yaml file #
3+
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
4+
#-------------------------------------------------------------------------------#
5+
#################################################################################
6+
# WARNING: Do not store sensitive information in this file, #
7+
# as its contents will be included in the Qodana report. #
8+
#################################################################################
9+
version: "1.0"
10+
#Specify inspection profile for code analysis
11+
profile:
12+
name: qodana.recommended
13+
#Enable inspections
14+
#include:
15+
# - name: <SomeEnabledInspectionId>
16+
#Disable inspections
17+
#exclude:
18+
# - name: <SomeDisabledInspectionId>
19+
# paths:
20+
# - <path/where/not/run/inspection>
21+
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
22+
#bootstrap: sh ./prepare-qodana.sh
23+
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
24+
#plugins:
25+
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
26+
# Quality gate. Will fail the CI/CD pipeline if any condition is not met
27+
# severityThresholds - configures maximum thresholds for different problem severities
28+
# testCoverageThresholds - configures minimum code coverage on a whole project and newly added code
29+
# Code Coverage is available in Ultimate and Ultimate Plus plans
30+
#failureConditions:
31+
# severityThresholds:
32+
# any: 15
33+
# critical: 5
34+
# testCoverageThresholds:
35+
# fresh: 70
36+
# total: 50
37+
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
38+
linter: jetbrains/qodana-js:2026.1

0 commit comments

Comments
 (0)