Joey Armstrong | a3f9aca | 2024-02-11 11:58:11 -0500 | [diff] [blame] | 1 | { |
Joey Armstrong | 024492a | 2024-04-01 12:30:35 -0400 | [diff] [blame] | 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" |
Joey Armstrong | a3f9aca | 2024-02-11 11:58:11 -0500 | [diff] [blame] | 43 | }, |
Joey Armstrong | 024492a | 2024-04-01 12:30:35 -0400 | [diff] [blame] | 44 | "copyright-notice" : { |
| 45 | "SPDX-FileCopyrightText" : "2024 Open Networking Foundation Contributors", |
| 46 | "SPDX-License-Identifier" : "Apache-2.0" |
Joey Armstrong | a3f9aca | 2024-02-11 11:58:11 -0500 | [diff] [blame] | 47 | }, |
Joey Armstrong | 024492a | 2024-04-01 12:30:35 -0400 | [diff] [blame] | 48 | "see-also" : { |
| 49 | ".groovylintrc-recommended.json" : "https://github.com/nvuillam/npm-groovy-lint/blob/main/lib/.groovylintrc-recommended.json" |
| 50 | } |
Joey Armstrong | a3f9aca | 2024-02-11 11:58:11 -0500 | [diff] [blame] | 51 | } |