-
Notifications
You must be signed in to change notification settings - Fork 0
/
.groovylintrc.json
54 lines (54 loc) · 1.67 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
{
"extends": "all",
"rules": {
"basic.DeadCode": "error",
"basic.IfStatementBraces": "info",
"basic.ParameterCount" : "info",
"basic.LineLength": "off",
"convention.CompileStatic": {
"severity": "info"
},
"naming.FactoryMethodName": "off",
"convention.FieldTypeRequired": "info",
"convention.IfStatementCouldBeTernary": "info",
"convention.NoDef": "info",
"convention.TrailingComma": "off",
"convention.VariableTypeRequired": "info",
"dry.DuplicateListLiteral": "info",
"dry.DuplicateMapLiteral": "warning",
"dry.DuplicateNumberLiteral": {
"ignoreNumbers": [
0,
1,
2,
3,
-1
],
"severity": "info"
},
"dry.DuplicateStringLiteral": "info",
"exceptions.ThrowException": "info",
"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.Indentation": {
"spacesPerIndentLevel": 2,
"severity": "info"
},
"formatting.SpaceAroundMapEntryColon": "off",
"groovyism.ExplicitCallToEqualsMethod": "info",
"logging.Println": "off",
"unused.UnusedArray": "error",
"unused.UnusedObject": "error",
"unused.UnusedPrivateField": "error",
"unused.UnusedPrivateMethod": "error",
"unused.UnusedPrivateMethodParameter": "error",
"unused.UnusedVariable": "error",
"unnecessary.UnnecessaryReturnKeyword": "off"
}
}