-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonar-project.properties
More file actions
44 lines (41 loc) · 2.45 KB
/
Copy pathsonar-project.properties
File metadata and controls
44 lines (41 loc) · 2.45 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
sonar.projectKey=rossaddison_invoice
sonar.organization=rossaddison
sonar.projectName=Invoice Application
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
# Sources and tests
# PHP tests live in a separate top-level Tests/ dir. TypeScript tests are
# co-located next to the source they cover (src/typescript/foo.test.ts beside
# foo.ts) rather than in their own directory, so src/typescript is declared as
# BOTH a source and a test root; sonar.test.inclusions' *.test.ts glob is what
# actually splits which files in it count as tests vs. source. Without this,
# every *.test.ts file was scored as ordinary source code requiring its own
# test coverage — nonsensical for a test file, and silently inflating the
# new-code coverage bar on any PR that adds or grows one (confirmed via the
# API: inv-index.test.ts sits at "0% coverage, 111 uncovered lines" project-wide
# today, entirely from this gap, not a real gap in what's tested).
sonar.sources=src,config,public
sonar.tests=Tests,src/typescript
sonar.test.inclusions=**/*.test.ts
sonar.php.coverage.reportPaths=coverage.xml,coverage-testo.xml
sonar.php.tests.reportPath=test-results.xml
sonar.exclusions=vendor/**,runtime/**,public/assets/**,nbproject/**,docker/**,src/Invoice/Asset/**,e.g.ini/**,resources/messages/**,**/*.png,**/*.jpg,**/*.jpeg,**/*.ico,**/*.gif,**/*.webp,**/*.bmp,**/*.tiff,**/*.svg
# Language versions
sonar.php.version=8.4
sonar.issue.ignore.multicriteria=e1,e2,e3,e4,e5
sonar.issue.ignore.multicriteria.e1.ruleKey=php:S116
sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.php
sonar.issue.ignore.multicriteria.e2.ruleKey=php:S1068
sonar.issue.ignore.multicriteria.e2.resourceKey=**/*.php
sonar.issue.ignore.multicriteria.e4.ruleKey=php:S1125
sonar.issue.ignore.multicriteria.e4.resourceKey=**/*.php
sonar.issue.ignore.multicriteria.e3.ruleKey=php:S1192
sonar.issue.ignore.multicriteria.e3.resourceKey=**/*.php
# ip-api.com's free tier is HTTP-only (HTTPS requires a paid plan); only a
# bare IP is ever sent, never anything sensitive, and only as the fallback
# after ipapi.co — see GeoIpLookupService's own class docblock. Scoped to
# this one file, not a project-wide S5332 exemption.
sonar.issue.ignore.multicriteria.e5.ruleKey=php:S5332
sonar.issue.ignore.multicriteria.e5.resourceKey=src/Redirect/GeoIpLookupService.php
sonar.cpd.exclusions=src/Invoice/Helpers/Peppol/**,src/Invoice/Helpers/StoreCove/StoreCoveArrays.php,src/Widget/SalesOrderToolbar.php
sonar.javascript.lcov.reportPaths=coverage/lcov.info