-
Notifications
You must be signed in to change notification settings - Fork 22
/
sonar-project.properties
59 lines (53 loc) · 2.59 KB
/
sonar-project.properties
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
# Customize sonar.sources, sonar.exclusions, sonar.coverage.exclusions, sonar.tests and sonar
# unit test coverage reports based on your solutions
# Refer to https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/
# for details on sources and exclusions. Note also .gitignore
#
sonar.sources=src/,frontend/src/
sonar.tests=test/,frontend/test/,src/
sonar.test.inclusions=src/**/test/**/*,\
test/**/*,\
frontend/test/**/*
# Focusing sonarqube analysis on non test code first and reducing noise from analysis of test code. Projects
# can customize the exclusions to include analyzing of test code if desired
sonar.exclusions=src/data-pipeline/spark-etl/build/**/*,\
src/data-pipeline/spark-etl/gradle/**/*,\
src/data-pipeline/spark-etl/gradle*,\
src/data-pipeline/spark-etl/*.gradle,\
src/data-pipeline/etl-common/build/**/*,\
src/data-pipeline/etl-common/gradle/**/*,\
src/data-pipeline/etl-common/gradle*,\
src/data-pipeline/etl-common/*.gradle,\
src/**/test/**/*,\
frontend/test/**/*,\
frontend/**/test/**/*,\
frontend/**/*.test.ts*,\
src/base-lib/coverage/**/*,\
src/base-lib/lib/**/*,\
src/control-plane/backend/lambda/api/coverage/**/*,\
*-ln.ts
sonar.issue.ignore.multicriteria=e1,e2,e3
# exclude False Positive findings for instantiating CDK objects only
sonar.issue.ignore.multicriteria.e1.ruleKey=typescript:S1848
sonar.issue.ignore.multicriteria.e1.resourceKey=src/**/*.ts
sonar.issue.ignore.multicriteria.e2.ruleKey=typescript:S3776
sonar.issue.ignore.multicriteria.e2.resourceKey=**/*.ts
sonar.issue.ignore.multicriteria.e3.ruleKey=java:S3776
sonar.issue.ignore.multicriteria.e3.resourceKey=src/**/*.java
# required Java compiled bytecode files
sonar.java.binaries=src/data-pipeline/spark-etl,\
src/data-pipeline/spark-etl/build/classes,\
src/data-pipeline/etl-common,\
src/data-pipeline/etl-common/build/classes
# Code coverage Specific Properties
sonar.coverage.exclusions=deployment/**,examples/**,docs/**
sonar.javascript.lcov.reportPaths=coverage/lcov.info,frontend/coverage/lcov.info,src/base-lib/coverage/lcov.info
sonar.coverage.jacoco.xmlReportPaths=src/data-pipeline/spark-etl/build/reports/jacoco/jacocoAggregatedReport/jacocoAggregatedReport.xml,\
src/data-pipeline/etl-common/build/reports/jacoco/jacocoAggregatedReport/jacocoAggregatedReport.xml
# exclude configuration files from duplication detection
sonar.cpd.exclusions=src/reporting/private/dataset-col-def.ts,\
src/data-pipeline/lambda/emr-job-submitter/traffic_source_channel_rule_v1.ts,\
src/data-pipeline/lambda/emr-job-submitter/traffic_source_category_rule_v1.ts,\
src/**/*-ln.ts
# Encoding of the source files
sonar.sourceEncoding=UTF-8