Skip to content

Commit 9e51e6d

Browse files
committed
added sonar properties
1 parent bdf0506 commit 9e51e6d

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.coveragerc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[run]
2+
source =
3+
splitio/
4+
5+
omit =
6+
tests/*
7+
*/__init__.py
8+
9+
branch = True
10+
11+
relative_files = True
12+
13+
[report]
14+
# Regexes for lines to exclude from consideration
15+
exclude_lines =
16+
# Have to re-enable the standard pragma
17+
pragma: no cover
18+
19+
# Don't complain about missing debug-only code:
20+
def __repr__
21+
if self\.debug
22+
23+
# Don't complain if tests don't hit defensive assertion code:
24+
raise AssertionError
25+
raise NotImplementedError
26+
27+
# Don't complain if non-runnable code isn't run:
28+
if 0:
29+
if __name__ == .__main__.:
30+
31+
precision = 2

sonar-project.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sonar.projectName=split_openfeature
2+
sonar.projectKey=split_openfeature
3+
sonar.python.version=3.9
4+
sonar.sources=splitio
5+
sonar.tests=tests
6+
sonar.text.excluded.file.suffixes=.csv
7+
sonar.python.coverage.reportPaths=coverage.xml
8+
sonar.coverage.exclusions=**/__init__.py
9+
sonar.links.ci=https://github.com/splitio/split-openfeature-provider-python
10+
sonar.links.scm=https://github.com/splitio/split-openfeature-provider-python/actions

0 commit comments

Comments
 (0)