-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonar-project.properties
More file actions
64 lines (53 loc) · 2.25 KB
/
Copy pathsonar-project.properties
File metadata and controls
64 lines (53 loc) · 2.25 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
# SonarCloud configuration for free-vpn-planet-test
# Tied to a SonarCloud project — see docs/sonarcloud-setup.md.
# Organization and project key match the GitHub repo path: Kseolis/free-vpn-planet-test.
sonar.projectKey=Kseolis_free-vpn-planet-test
sonar.organization=kseolis
sonar.host.url=https://sonarcloud.io
# Display
sonar.projectName=Free VPN Planet — E2E Test Suite
sonar.projectVersion=0.1.0
# Source code under analysis (TypeScript only — shell scripts and Markdown excluded
# from the static-analysis scope but kept in the repo).
sonar.sources=tests,scripts,playwright.config.ts,eslint.config.mjs
sonar.sourceEncoding=UTF-8
# Tests live alongside the rest of the suite. Sonar treats them as test code so
# coverage / duplication metrics on the production-style folders (pages,
# fixtures, factories) aren't polluted by the spec files.
sonar.tests=tests/specs
sonar.test.inclusions=**/*.spec.ts
# TypeScript-specific: point the analyzer at the strict tsconfig so it shares
# resolution with the Playwright runner.
sonar.typescript.tsconfigPath=tsconfig.json
# Test-execution feed: Playwright already emits a JUnit XML in playwright-report/.
# SonarCloud picks this up via the generic JUnit reader.
sonar.junit.reportPaths=playwright-report/junit.xml
# We have no unit-test line coverage (the suite is E2E against external sites).
# Leave the LCov path empty so Sonar doesn't claim 0% coverage.
# sonar.javascript.lcov.reportPaths=
# Exclusions — vendored, generated, transient, or 3rd-party files.
sonar.exclusions=\
**/node_modules/**,\
**/test-results/**,\
**/playwright-report/**,\
**/.playwright-mcp/**,\
**/.tsbuildinfo,\
**/.husky/_/**,\
**/.claude/**,\
**/*.template.ts,\
**/dist/**,\
docs/**
# Coverage exclusions — declarative-only files that Sonar shouldn't penalise.
sonar.coverage.exclusions=\
tests/factories/**,\
tests/fixtures/**,\
tests/pages/BasePage.ts,\
tests/infra/env.ts,\
playwright.config.ts,\
eslint.config.mjs,\
scripts/**
# Duplication threshold — small page-object methods naturally repeat selector
# patterns, so the default 100-token block is fine.
sonar.cpd.exclusions=tests/factories/**
# Skip TypeScript bundle definition files
sonar.javascript.exclusions=**/*.d.ts