blob: ddabd04016b7032f050bc45d65f9a863ecf0eb9c [file] [log] [blame]
Joey Armstronga3f9aca2024-02-11 11:58:11 -05001{
Joey Armstrong024492a2024-04-01 12:30:35 -04002 "extends": "all",
3 "rules": {
4 "basic.DeadCode": "error",
5 "convention.CompileStatic": {
6 "severity": "info"
7 },
8 "convention.FieldTypeRequired": "info",
9 "convention.IfStatementCouldBeTernary": "info",
10 "convention.NoDef": "info",
11 "convention.TrailingComma": "off",
12 "convention.VariableTypeRequired": "info",
13 "dry.DuplicateListLiteral": "info",
14 "dry.DuplicateMapLiteral": "warning",
15 "dry.DuplicateNumberLiteral": {
16 "ignoreNumbers": [0, 1, 2, 3, -1],
17 "severity": "info"
18 },
19 "dry.DuplicateStringLiteral": "info",
20 "exceptions.ThrowException": "info",
21 "exceptions.ThrowNullPointerException": "info",
22 "exceptions.ThrowRuntimeException": "info",
23 "exceptions.ThrowThrowable": "info",
24 "formatting.BracesForClass": "info",
25 "formatting.BracesForForLoop": "info",
26 "formatting.BracesForIfElse": "off",
27 "formatting.BracesForMethod": "off",
28 "formatting.BracesForTryCatchFinally": "off",
29 "formatting.Indentation": {
30 "spacesPerIndentLevel": 4,
31 "severity": "info"
32 },
33 "formatting.SpaceAroundMapEntryColon": "off",
34 "groovyism.ExplicitCallToEqualsMethod": "info",
35 "logging.Println": "off",
36 "unused.UnusedArray": "error",
37 "unused.UnusedObject": "error",
38 "unused.UnusedPrivateField": "error",
39 "unused.UnusedPrivateMethod": "error",
40 "unused.UnusedPrivateMethodParameter": "error",
41 "unused.UnusedVariable": "error",
42 "unnecessary.UnnecessaryReturnKeyword": "off"
Joey Armstronga3f9aca2024-02-11 11:58:11 -050043 },
Joey Armstrong024492a2024-04-01 12:30:35 -040044 "copyright-notice" : {
45 "SPDX-FileCopyrightText" : "2024 Open Networking Foundation Contributors",
46 "SPDX-License-Identifier" : "Apache-2.0"
Joey Armstronga3f9aca2024-02-11 11:58:11 -050047 },
Joey Armstrong024492a2024-04-01 12:30:35 -040048 "see-also" : {
49 ".groovylintrc-recommended.json" : "https://github.com/nvuillam/npm-groovy-lint/blob/main/lib/.groovylintrc-recommended.json"
50 }
Joey Armstronga3f9aca2024-02-11 11:58:11 -050051}