Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 56b4d26

Browse files
committed
Update version to 1.1-SNAPSHOT and add Qodana configuration files for code quality analysis
1 parent 2631bf2 commit 56b4d26

4 files changed

Lines changed: 88 additions & 3 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#-------------------------------------------------------------------------------#
2+
# Discover all capabilities of Qodana in our documentation #
3+
# https://www.jetbrains.com/help/qodana/about-qodana.html #
4+
#-------------------------------------------------------------------------------#
5+
6+
name: Qodana
7+
on:
8+
workflow_dispatch:
9+
pull_request:
10+
push:
11+
branches:
12+
- dev
13+
- master
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@v2025.2
29+
env:
30+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
31+
with:
32+
# In pr-mode: 'true' Qodana checks only changed files
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'

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
echo "✅ Tag '$TAG' ist neu. Fortfahren..."
7777
fi
7878
79-
# 5) Release anlegen
79+
# 5) Release anlegen (Prerelease, wenn SNAPSHOT)
8080
- name: Create Release
8181
id: create
8282
uses: actions/create-release@v1
@@ -86,7 +86,8 @@ jobs:
8686
tag_name: ${{ steps.vars.outputs.version }}
8787
release_name: ${{ steps.vars.outputs.version }}
8888
draft: false
89-
prerelease: false
89+
# Prerelease = true, wenn Version auf "-SNAPSHOT" endet
90+
prerelease: ${{ endsWith( steps.vars.outputs.version, '-SNAPSHOT' ) }}
9091

9192
# 6) JAR hochladen
9293
- name: Upload JAR

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = 'gg.nextforge'
9-
version = '1.0-SNAPSHOT'
9+
version = '1.1-SNAPSHOT'
1010

1111
repositories {
1212
mavenCentral()

‎qodana.yaml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#-------------------------------------------------------------------------------#
2+
# Qodana analysis is configured by qodana.yaml file #
3+
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
4+
#-------------------------------------------------------------------------------#
5+
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+
# Quality gate. Will fail the CI/CD pipeline if any condition is not met
31+
# severityThresholds - configures maximum thresholds for different problem severities
32+
# testCoverageThresholds - configures minimum code coverage on a whole project and newly added code
33+
# Code Coverage is available in Ultimate and Ultimate Plus plans
34+
#failureConditions:
35+
# severityThresholds:
36+
# any: 15
37+
# critical: 5
38+
# testCoverageThresholds:
39+
# fresh: 70
40+
# total: 50
41+
42+
#Qodana supports other languages, for example, Python, JavaScript, TypeScript, Go, C#, PHP
43+
#For all supported languages see https://www.jetbrains.com/help/qodana/linters.html
44+
linter: jetbrains/qodana-jvm-community:2025.2

0 commit comments

Comments
 (0)