-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonar-project.properties
More file actions
84 lines (65 loc) · 3.32 KB
/
Copy pathsonar-project.properties
File metadata and controls
84 lines (65 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# sonar-project.properties
#
# Optional SonarQube configuration file
# Most settings are configured in build.gradle.kts (preferred for Gradle projects)
# This file can override or supplement those settings
# Project identification (must match build.gradle.kts)
sonar.projectKey=bedaHovorka_interlockSim
sonar.projectName=interlockSim - Railway Interlocking Simulator
sonar.projectVersion=1.0
# Organization (required for SonarCloud)
sonar.organization=bedahovorka
# Source code location (Kotlin; :core KMP subproject + :desktop-ui JVM subproject)
sonar.sources=desktop-ui/src/main/kotlin,core/src/commonMain/kotlin,core/src/jvmMain/kotlin,core/src/nativeMain/kotlin
# sonar.tests: no nativeTest entry yet — add core/src/nativeTest/kotlin here
# if native test sources are introduced (keeps symmetry with nativeMain above).
sonar.tests=desktop-ui/src/test/kotlin,core/src/commonTest/kotlin,core/src/jvmTest/kotlin
# Source encoding — UTF-8 is the project default (see .editorconfig).
sonar.sourceEncoding=UTF-8
# Java version (Java 21 LTS)
sonar.java.source=21
sonar.java.target=21
# Binary locations (compiled classes — dual-module).
# Native (linuxX64) compilations are intentionally excluded: SonarCloud's
# Kotlin analyzer operates from sources, and java.binaries is JVM-only.
sonar.java.binaries=desktop-ui/build/classes/kotlin/main,core/build/classes/kotlin/jvm/main
sonar.java.test.binaries=desktop-ui/build/classes/kotlin/test,core/build/classes/kotlin/jvm/test
# Library dependencies (optional - helps with better analysis)
# sonar.java.libraries=build/libs/*.jar,~/.m2/repository/**/*.jar
# Test execution and coverage reports (dual-module)
sonar.junit.reportPaths=desktop-ui/build/test-results/test,desktop-ui/build/test-results/integrationTest,core/build/test-results/jvmTest,core/build/test-results/integrationTest
sonar.coverage.jacoco.xmlReportPaths=desktop-ui/build/reports/jacoco/test/jacocoTestReport.xml,core/build/reports/jacoco/jvmTest/jacocoTestReport.xml
# Project links (optional - useful for GitHub integration)
# sonar.links.homepage=https://github.com/bedavs/interlockSim
# sonar.links.ci=https://github.com/bedavs/interlockSim/actions
# sonar.links.issue=https://github.com/bedavs/interlockSim/issues
# sonar.links.scm=https://github.com/bedavs/interlockSim
# Exclusions (exclude files from analysis)
# sonar.exclusions=**/generated/**,**/legacy/**
# Test exclusions
# sonar.test.exclusions=**/testutil/**
# Code duplication detection threshold
sonar.cpd.java.minimumtokens=100
# Quality gate settings
# Set to true to fail build if quality gate fails
sonar.qualitygate.wait=false
# Analysis scope (uncomment to analyze only new code)
# sonar.newCodePeriod.type=previous_version
# Or analyze changes since a specific date
# sonar.newCodePeriod.type=date
# sonar.newCodePeriod.value=2026-01-01
# Debug settings (enable for troubleshooting)
# sonar.verbose=true
# sonar.log.level=DEBUG
# SCM settings (Git is auto-detected, but can be specified)
# sonar.scm.provider=git
# sonar.scm.disabled=false
# Issue assignment (auto-assign issues to last committer)
# sonar.scm.disabled=false
# Branch analysis (SonarCloud/Enterprise feature)
# sonar.branch.name=develop
# sonar.branch.target=main
# Pull request analysis (SonarCloud/Enterprise feature)
# sonar.pullrequest.key=123
# sonar.pullrequest.branch=feature/my-feature
# sonar.pullrequest.base=main