67 lines
1.6 KiB
Groovy
67 lines
1.6 KiB
Groovy
ruleset {
|
|
UnnecessarySemicolon
|
|
BlockEndsWithBlankLine
|
|
BlockStartsWithBlankLine
|
|
ConsecutiveBlankLines
|
|
MissingBlankLineAfterImports
|
|
MissingBlankLineAfterPackage
|
|
|
|
// Braces
|
|
BracesForClass
|
|
BracesForForLoop
|
|
BracesForIfElse
|
|
BracesForMethod
|
|
BracesForTryCatchFinally
|
|
|
|
// Spaces
|
|
SpaceAfterCatch
|
|
SpaceAfterComma
|
|
SpaceAfterClosingBrace
|
|
SpaceAfterFor
|
|
SpaceAfterIf
|
|
SpaceAfterOpeningBrace
|
|
SpaceAfterSemicolon
|
|
SpaceAfterSwitch
|
|
SpaceAfterWhile
|
|
SpaceAroundClosureArrow
|
|
SpaceAroundMapEntryColon
|
|
SpaceAroundOperator
|
|
SpaceBeforeClosingBrace
|
|
SpaceBeforeOpeningBrace
|
|
TrailingWhitespace
|
|
|
|
// Groovyism - See: https://codenarc.org/codenarc-rules-groovyism.html
|
|
ClosureAsLastMethodParameter
|
|
ExplicitArrayListInstantiation
|
|
ExplicitCallToAndMethod
|
|
ExplicitCallToCompareToMethod
|
|
ExplicitCallToDivMethod
|
|
ExplicitCallToEqualsMethod
|
|
ExplicitCallToGetAtMethod
|
|
ExplicitCallToLeftShiftMethod
|
|
ExplicitCallToMinusMethod
|
|
ExplicitCallToMultiplyMethod
|
|
ExplicitCallToModMethod
|
|
ExplicitCallToOrMethod
|
|
ExplicitCallToPlusMethod
|
|
ExplicitCallToPowerMethod
|
|
ExplicitCallToRightShiftMethod
|
|
ExplicitCallToXorMethod
|
|
ExplicitHashMapInstantiation
|
|
ExplicitLinkedHashMapInstantiation
|
|
ExplicitHashSetInstantiation
|
|
ExplicitLinkedListInstantiation
|
|
ExplicitStackInstantiation
|
|
ExplicitTreeSetInstantiation
|
|
GetterMethodCouldBeProperty
|
|
GStringAsMapKey
|
|
GStringExpressionWithinString
|
|
CouldBeElvis
|
|
TernaryCouldBeElvis
|
|
FieldTypeRequired
|
|
MethodParameterTypeRequired
|
|
|
|
//Misc
|
|
LongLiteralWithLowerCaseL
|
|
}
|