Joey Armstrong | d548772 | 2024-02-11 09:39:14 -0500 | [diff] [blame] | 1 | { |
| 2 | "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" |
| 43 | }, |
| 44 | "see-also" : { |
| 45 | ".groovylintrc-recommended.json" : "https://github.com/nvuillam/npm-groovy-lint/blob/main/lib/.groovylintrc-recommended.json" } |
| 46 | } |