-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsonar-project.properties
More file actions
61 lines (51 loc) · 2.29 KB
/
sonar-project.properties
File metadata and controls
61 lines (51 loc) · 2.29 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
# =============================================================================
# SonarCloud configuration
# https://docs.sonarsource.com/sonarcloud/advanced-setup/analysis-parameters/
#
# Project key and organization can be verified in SonarCloud under:
# Administration → General Settings
# =============================================================================
sonar.projectKey=nanotaboada_Dotnet.Samples.AspNetCore.WebApi
sonar.organization=nanotaboada
# Source encoding
sonar.sourceEncoding=UTF-8
# =============================================================================
# Sources and tests
# =============================================================================
sonar.sources=src/
sonar.tests=test/
sonar.test.inclusions=test/**/*.cs
# =============================================================================
# Global exclusions
# Keeps analysis focused on hand-written production code.
# =============================================================================
sonar.exclusions=\
**/obj/**,\
**/bin/**,\
**/Migrations/**
# =============================================================================
# Coverage exclusions
# Test files and generated/infrastructure code should not count against
# production code coverage metrics.
# =============================================================================
sonar.coverage.exclusions=\
test/**/*.cs,\
**/Migrations/**,\
**/Data/PlayerDbContext.cs
# =============================================================================
# Duplicate code (CPD) exclusions
# NOTE: // NOSONAR suppresses rule-based issues (bugs, code smells, security
# hotspots) but has no effect on CPD metrics. Files must be listed here to be
# excluded from duplicate code detection.
#
# test/**/*.cs — Fakes, Mocks, and Stubs are intentionally repetitive by
# design; similarity between arrange/act/assert blocks across tests is
# expected and harmless.
#
# **/Validators/PlayerRequestModelValidator.cs — the "Create" and "Update"
# rule sets share common rules by design; the duplication is intentional to
# keep each operation's validation self-contained and readable.
# =============================================================================
sonar.cpd.exclusions=\
test/**/*.cs,\
**/Validators/PlayerRequestModelValidator.cs