-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
qodana.yaml
68 lines (59 loc) · 1.95 KB
/
qodana.yaml
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
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
#Specify inspection profile for code analysis
profile:
name: qodana.recommended
#Enable inspections
include:
- name: VulnerableLibrariesGlobal
- name: CheckDependencyLicenses
#Disable inspections
exclude:
- name: CommentedOutCode
- name: ControlFlowWithEmptyBody # there's a few if statements with no-op
- name: Deprecation
- name: SizeReplaceableByIsEmpty
- name: JavadocLinkAsPlainText
- name: ConstantValue
paths:
- barcode4j/src/main/java/org/krysalis/barcode4j/impl
- name: UNCHECKED_WARNING
paths:
- barcode4j/src/main/java/org/krysalis/barcode4j/DefaultBarcodeClassResolver.java
- name: All
paths:
- aggregate-report
- barcode4j/src/main/java/org/krysalis/barcode4j/configuration
- barcode4j/src/sandbox
- barcode4j-ant
- barcode4j-cli
- barcode4j-examples
- barcode4j-saxon8
- barcode4j-saxon91
- barcode4j-servlet
projectJDK: '8'
licenseRules:
- prohibited:
- GPLv2
- GPLv3
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-jvm-community:latest
failureConditions:
severityThresholds:
any: 100 # Total problems
critical: 5 # Critical and other severities
high: 90
moderate: 20
low: 10
info: 10
testCoverageThresholds:
fresh: 50 # Fresh code coverage
total: 60 # Total code coverage