| { |
| "extends": "all", |
| "rules": { |
| "basic.DeadCode": "error", |
| "convention.CompileStatic": { |
| "severity": "info" |
| }, |
| "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": "off", |
| "formatting.BracesForMethod": "off", |
| "formatting.BracesForTryCatchFinally": "off", |
| "formatting.Indentation": { |
| "spacesPerIndentLevel": 4, |
| "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" |
| }, |
| "copyright-notice" : { |
| "SPDX-FileCopyrightText" : "2024 Open Networking Foundation Contributors", |
| "SPDX-License-Identifier" : "Apache-2.0" |
| }, |
| "see-also" : { |
| ".groovylintrc-recommended.json" : "https://github.com/nvuillam/npm-groovy-lint/blob/main/lib/.groovylintrc-recommended.json" |
| } |
| } |