-
Notifications
You must be signed in to change notification settings - Fork 210
Expand file tree
/
Copy pathsonar-project.properties
More file actions
82 lines (66 loc) · 2.52 KB
/
sonar-project.properties
File metadata and controls
82 lines (66 loc) · 2.52 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
# SonarQube Configuration for Solace Agent Mesh
# This file configures SonarQube analysis for both Python backend and TypeScript/React UI
sonar.projectKey=SolaceLabs_solace-agent-mesh
sonar.projectName=solace-agent-mesh
# =============================================================================
# Source Configuration
# =============================================================================
# Source directories: Python backend + TypeScript/React UI
sonar.sources=src/,client/webui/frontend/src/
# Test directories: Python tests + UI test files (stories)
sonar.tests=tests/,client/webui/frontend/src/stories/
# =============================================================================
# Coverage Configuration
# =============================================================================
# Python coverage report (XML format from pytest-cov)
sonar.python.coverage.reportPaths=coverage.xml
# JavaScript/TypeScript coverage report (LCOV format from Vitest)
sonar.javascript.lcov.reportPaths=client/webui/frontend/coverage/lcov.info
sonar.typescript.lcov.reportPaths=client/webui/frontend/coverage/lcov.info
# =============================================================================
# Exclusions
# =============================================================================
# Exclude from source analysis
sonar.exclusions=\
**/node_modules/**,\
**/dist/**,\
**/static/**,\
**/build/**,\
**/*.min.js,\
**/*.min.css,\
**/vendor/**,\
**/__pycache__/**,\
**/*.pyc,\
**/migrations/**,\
**/templates/**,\
**/evaluation/**,\
**/cli/**,\
**/stories/**
# Test file patterns to exclude from main source analysis
sonar.test.exclusions=\
**/node_modules/**,\
**/dist/**
# Test inclusions - patterns for test files
sonar.test.inclusions=\
**/*.test.ts,\
**/*.test.tsx,\
**/*.spec.ts,\
**/*.spec.tsx,\
**/*.stories.tsx,\
**/*.stories.ts,\
**/tests/**/*.py,\
**/test_*.py,\
**/*_test.py
# =============================================================================
# Language-specific settings
# =============================================================================
# Python version
sonar.python.version=3.10,3.11,3.12,3.13
# TypeScript/JavaScript file suffixes
sonar.typescript.file.suffixes=.ts,.tsx
sonar.javascript.file.suffixes=.js,.jsx
# =============================================================================
# Quality Gate
# =============================================================================
# Use the default quality gate or specify a custom one
# sonar.qualitygate.wait=true