forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.groovylintrc.json
78 lines (78 loc) · 2.63 KB
/
.groovylintrc.json
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
{
"extends": "recommended",
"rules":
{
"basic.DeadCode": "error",
"convention.CompileStatic": "off",
"convention.FieldTypeRequired": "info",
"convention.IfStatementCouldBeTernary": "info",
"convention.MethodReturnTypeRequired": "off",
"convention.NoDef": "off",
"convention.TrailingComma": "warning",
"convention.VariableTypeRequired": "off",
"design.Instanceof": "off",
"dry.DuplicateListLiteral": "info",
"dry.DuplicateMapLiteral": "warning",
"dry.DuplicateStringLiteral":
{
"ignoreStrings": "nexus",
"severity": "info"
},
"exceptions.ThrowException": "warning",
"exceptions.ThrowNullPointerException": "info",
"exceptions.ThrowRuntimeException": "info",
"exceptions.ThrowThrowable": "info",
"formatting.BracesForClass": "info",
"formatting.BracesForForLoop": "info",
"formatting.BracesForIfElse": "info",
"formatting.BracesForMethod": "info",
"formatting.BracesForTryCatchFinally": "info",
"formatting.ConsecutiveBlankLines": "warning",
"formatting.FileEndsWithoutNewline": "warning",
"formatting.Indentation":
{
"severity": "warning",
"spacesPerIndentLevel": 4
},
"formatting.LineLength":
{
"length": 140,
"severity": "warning"
},
"formatting.SpaceAroundMapEntryColon": "off",
"groovyism.ExplicitCallToEqualsMethod": "info",
"logging.Println": "off",
"naming.FactoryMethodName": "off",
"naming.ParameterName":
{
"regex": "^[a-zA-Z0-9_]*$",
"severity": "info"
},
"naming.VariableName":
{
"regex": "^[a-zA-Z0-9_]*$",
"severity": "info"
},
"size.MethodSize":
{
"maxLines": 150,
"severity": "warning"
},
"size.NestedBlockDepth":
{
"maxNestedBlockDepth": 8,
"severity": "warning"
},
"unnecessary.UnnecessaryGString": "off",
"unnecessary.UnnecessaryParenthesesForMethodCallWithClosure": "off",
"unnecessary.UnnecessaryReturnKeyword": "off",
"unnecessary.UnnecessarySemicolon": "off",
"unused.UnusedArray": "error",
"unused.UnusedMethodParameter": "error",
"unused.UnusedObject": "error",
"unused.UnusedPrivateField": "error",
"unused.UnusedPrivateMethod": "error",
"unused.UnusedPrivateMethodParameter": "error",
"unused.UnusedVariable": "error"
}
}