|
30 | 30 | <!-- Config file --> |
31 | 31 | <checkstyle.config.location>bordertech/bt-checkstyle.xml</checkstyle.config.location> |
32 | 32 | <!-- PMD --> |
| 33 | + <pmd.printFailingErrors>true</pmd.printFailingErrors> |
33 | 34 | <!-- Priority: 1 (High) - 5 (Low) --> |
34 | 35 | <pmd.failurePriority>2</pmd.failurePriority> |
| 36 | + <!-- Print details of check failures to build output --> |
| 37 | + <pmd.verbose>true</pmd.verbose> |
35 | 38 | <!-- Rules file --> |
36 | 39 | <bt.pmd.rules.file>bordertech/bt-pmd-rules.xml</bt.pmd.rules.file> |
| 40 | + <!-- CPD (Default to report only) --> |
| 41 | + <cpd.failOnViolation>false</cpd.failOnViolation> |
37 | 42 |
|
38 | 43 | <!-- Spotbugs --> |
39 | 44 | <!-- Effort --> |
|
43 | 48 | <!-- Rank: Scariest (1-4), Scary (5-9), Troubling (10-14), Of concern (15-20) --> |
44 | 49 | <spotbugs.maxRank>14</spotbugs.maxRank> |
45 | 50 |
|
46 | | - <!-- OWASP --> |
| 51 | + <!-- OWASP (Default to Critical) --> |
47 | 52 | <!-- Check every 12 hours (default is 4) --> |
48 | 53 | <cveValidForHours>12</cveValidForHours> |
49 | 54 | <!-- Min cvss score to fail on. Range 0-10 : LOW: 0-3.9, MEDIUM: 4-6.9, HIGH: 7.0-8.9, Critical: 9.0-10.0 (Default is 11 which means it never fails) --> |
50 | | - <failBuildOnCVSS>4</failBuildOnCVSS> |
| 55 | + <failBuildOnCVSS>9</failBuildOnCVSS> |
51 | 56 | <!-- If set, owasp uses the proxy id in maven settings to download its db. --> |
52 | 57 | <mavenSettingsProxyId /> |
| 58 | + <!-- Disable retirejs analyzer --> |
| 59 | + <retireJsAnalyzerEnabled>false</retireJsAnalyzerEnabled> |
| 60 | + <!-- Disable swift analyzer --> |
| 61 | + <swiftPackageManagerAnalyzerEnabled>false</swiftPackageManagerAnalyzerEnabled> |
| 62 | + <!-- Disbale .net analyzers --> |
| 63 | + <nuspecAnalyzerEnabled>false</nuspecAnalyzerEnabled> |
| 64 | + <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled> |
53 | 65 |
|
54 | 66 | <!-- Versions --> |
55 | 67 | <bt.junit.version>5.6.0</bt.junit.version> |
|
130 | 142 | <groupId>org.apache.maven.plugins</groupId> |
131 | 143 | <artifactId>maven-checkstyle-plugin</artifactId> |
132 | 144 | <version>${bt.checkstyle.plugin.version}</version> |
133 | | - <configuration> |
134 | | - <failsOnError>true</failsOnError> |
135 | | - <linkXRef>false</linkXRef> |
136 | | - <consoleOutput>true</consoleOutput> |
137 | | - </configuration> |
138 | 145 | <dependencies> |
139 | 146 | <!-- Latest checkstyle version --> |
140 | 147 | <dependency> |
|
169 | 176 | <rulesets> |
170 | 177 | <ruleset>${bt.pmd.rules.file}</ruleset> |
171 | 178 | </rulesets> |
172 | | - <printFailingErrors>true</printFailingErrors> |
173 | | - <linkXRef>false</linkXRef> |
174 | | - <verbose>true</verbose> |
175 | 179 | </configuration> |
176 | 180 | <dependencies> |
177 | 181 | <!-- Latest pmd version --> |
|
215 | 219 | <execution> |
216 | 220 | <id>checkCpd</id> |
217 | 221 | <phase>verify</phase> |
218 | | - <configuration> |
219 | | - <failOnViolation>false</failOnViolation> |
220 | | - </configuration> |
221 | 222 | <goals> |
222 | 223 | <goal>cpd-check</goal> |
223 | 224 | </goals> |
|
276 | 277 | <groupId>org.owasp</groupId> |
277 | 278 | <artifactId>dependency-check-maven</artifactId> |
278 | 279 | <version>${bt.owasp.plugin.version}</version> |
279 | | - <configuration> |
280 | | - <retireJsAnalyzerEnabled>false</retireJsAnalyzerEnabled> |
281 | | - <nuspecAnalyzerEnabled>false</nuspecAnalyzerEnabled> |
282 | | - <swiftPackageManagerAnalyzerEnabled>false</swiftPackageManagerAnalyzerEnabled> |
283 | | - <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled> |
284 | | - </configuration> |
285 | 280 | <executions> |
286 | 281 | <execution> |
287 | 282 | <id>checkDependencies</id> |
|
0 commit comments