-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy path.detekt.yml
More file actions
44 lines (39 loc) · 925 Bytes
/
.detekt.yml
File metadata and controls
44 lines (39 loc) · 925 Bytes
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
style:
# We want to allow "TODO" in comments
ForbiddenComment:
active: false
# Allow for generated code
WildcardImport:
excludeImports:
- mozilla.telemetry.glean.internal.*
# Multiple returns are ok
ReturnCount:
active: false
# Go ahead and jump (Jump!)
# Go ahead and jump
#
# break/continue in loops are ok.
LoopWithTooManyJumpStatements:
active: false
build:
maxIssues: 0
comments:
active: true
AbsentOrWrongFileLicense:
active: true
licenseTemplateFile: 'license.template'
licenseTemplateIsRegex: false
complexity:
LongMethod:
active: true
threshold: 60
# We need to relax naming of enums and classes a bit,
# as they are generated by the glean_parser for metric types, such as events.
naming:
active: true
ClassNaming:
active: true
classPattern: '[a-zA-Z0-9$]+'
EnumNaming:
active: true
enumEntryPattern: '[a-zA-Z0-9$]+'