forked from jhipster/jhipster-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonar-project.properties
105 lines (82 loc) · 4.85 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
sonar.projectKey=jhlite
sonar.projectName=JHipster Lite
# used for local sonarqube Docker image
sonar.login=admin
sonar.password=admin
sonar.sources=src/main/
sonar.tests=src/test/
sonar.host.url=http://localhost:9001
sonar.test.inclusions=src/test/**/*.*, src/main/webapp/**/*.spec.ts
sonar.coverage.jacoco.xmlReportPaths=target/jacoco/jacoco.xml
sonar.java.codeCoveragePlugin=jacoco
sonar.junit.reportPaths=target/surefire-reports,target/failsafe-reports
sonar.testExecutionReportPaths=target/test-results/TESTS-results-sonar.xml
sonar.javascript.lcov.reportPaths=target/test-results/lcov.info
sonar.sourceEncoding=UTF-8
sonar.exclusions=\
src/main/resources/**,\
src/main/webapp/app/main.ts,\
src/main/webapp/app/router/index.ts,\
src/main/webapp/app/**/application/*Provider.ts,\
src/main/webapp/app/shared/alert/infrastructure/primary/WindowApplicationListener.ts,\
src/main/webapp/app/module/secondary/RestManagementRepository.ts,\
src/main/webapp/app/injections.ts,\
src/main/webapp/content/**/*.*,\
target/classes/static/**/*.*,\
src/main/glyph/css/**
sonar.test.exclusions=\
src/test/resources/**
sonar.typescript.tsconfigPath=tsconfig.json
sonar.issue.ignore.multicriteria=S1640,S3437,S4502,S4684,S4032,S5778,S119,UndocumentedApi,S5976,S2068,S117,S2083,S6206,S6564,S4649,S7027,S7091
# Rule: Replace map by enum map
sonar.issue.ignore.multicriteria.S1640.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.S1640.ruleKey=java:S1640
# Rule https://rules.sonarsource.com/java/RSPEC-3437 is ignored, as a JPA-managed field cannot be transient
sonar.issue.ignore.multicriteria.S3437.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.S3437.ruleKey=squid:S3437
# Rule https://rules.sonarsource.com/java/RSPEC-1176 is ignored, as we want to follow "clean code" guidelines and classes, methods and arguments names should be self-explanatory
sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey=squid:UndocumentedApi
# Rule https://rules.sonarsource.com/java/RSPEC-4502 is ignored, as for JWT tokens we are not subject to CSRF attack
sonar.issue.ignore.multicriteria.S4502.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.S4502.ruleKey=java:S4502
# Rule https://rules.sonarsource.com/java/RSPEC-4684
sonar.issue.ignore.multicriteria.S4684.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.S4684.ruleKey=java:S4684
# Rule: Packages containing only "package-info.java" should be removed
sonar.issue.ignore.multicriteria.S4032.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.S4032.ruleKey=java:S4032
# Rule: Only one method invocation is expected when testing runtime exceptions
sonar.issue.ignore.multicriteria.S5778.resourceKey=src/test/java/**/*
sonar.issue.ignore.multicriteria.S5778.ruleKey=java:S5778
# Rule: Generic types on one character
sonar.issue.ignore.multicriteria.S119.resourceKey=src/**/java/**/*
sonar.issue.ignore.multicriteria.S119.ruleKey=java:S119
# Rule: Replace test by parameterized on
sonar.issue.ignore.multicriteria.S5976.resourceKey=src/test/java/**/*
sonar.issue.ignore.multicriteria.S5976.ruleKey=java:S5976
# Rule: hardcoded authentications
sonar.issue.ignore.multicriteria.S2068.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.S2068.ruleKey=java:S2068
# Rule: Local variable and method parameter names should comply with a naming convention
# Handled with checkstyle. Should be revisited with java 25 once JEP 443: Unnamed Patterns and Variables are available
sonar.issue.ignore.multicriteria.S117.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.S117.ruleKey=java:S117
# Rule: Allow writing to user controlled paths
sonar.issue.ignore.multicriteria.S2083.resourceKey=src/main/java/**/*
sonar.issue.ignore.multicriteria.S2083.ruleKey=javasecurity:S2083
# Rule: Use record when possible in primary
sonar.issue.ignore.multicriteria.S6206.resourceKey=src/main/java/**/infrastructure/primary/**/*
sonar.issue.ignore.multicriteria.S6206.ruleKey=java:S6206
# Rule: Remove this redundant type alias and replace its occurrences with "string"
sonar.issue.ignore.multicriteria.S6564.resourceKey=src/main/webapp/**/*
sonar.issue.ignore.multicriteria.S6564.ruleKey=typescript:S6564
# Rule: Unexpected missing generic font family for icons font
sonar.issue.ignore.multicriteria.S4649.resourceKey=src/main/webapp/**/*
sonar.issue.ignore.multicriteria.S4649.ruleKey=css:S4649
# Rule: Circular dependencies between classes in the same package should be resolved
sonar.issue.ignore.multicriteria.S7027.resourceKey=src/**/java/**/*
sonar.issue.ignore.multicriteria.S7027.ruleKey=javaarchitecture:S7027
# Rule: Circular dependencies between classes across packages should be resolved
sonar.issue.ignore.multicriteria.S7091.resourceKey=src/**/java/**/*
sonar.issue.ignore.multicriteria.S7091.ruleKey=javaarchitecture:S7091