2021-03-25 22:57:28 +00:00
|
|
|
ruleset {
|
|
|
|
UnnecessarySemicolon
|
|
|
|
BlockEndsWithBlankLine
|
|
|
|
BlockStartsWithBlankLine
|
|
|
|
ConsecutiveBlankLines
|
|
|
|
MissingBlankLineAfterImports
|
|
|
|
MissingBlankLineAfterPackage
|
|
|
|
|
|
|
|
// Braces
|
|
|
|
BracesForClass
|
|
|
|
BracesForForLoop
|
|
|
|
BracesForIfElse
|
|
|
|
BracesForMethod
|
|
|
|
BracesForTryCatchFinally
|
|
|
|
|
|
|
|
// Spaces
|
|
|
|
SpaceAfterCatch
|
|
|
|
SpaceAfterComma
|
|
|
|
SpaceAfterClosingBrace
|
|
|
|
SpaceAfterFor
|
|
|
|
SpaceAfterIf
|
|
|
|
SpaceAfterOpeningBrace
|
|
|
|
SpaceAfterSemicolon
|
|
|
|
SpaceAfterSwitch
|
|
|
|
SpaceAfterWhile
|
|
|
|
SpaceAroundClosureArrow
|
2021-08-31 10:48:58 +00:00
|
|
|
SpaceAroundMapEntryColon(characterAfterColonRegex: /\ /)
|
2021-03-25 22:57:28 +00:00
|
|
|
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
|
|
|
|
|
2021-08-31 10:48:58 +00:00
|
|
|
// Imports
|
|
|
|
UnusedImport
|
|
|
|
UnnecessaryGroovyImport
|
|
|
|
NoWildcardImports(ignoreStaticImports: true)
|
|
|
|
ImportFromSamePackage
|
|
|
|
DuplicateImport
|
|
|
|
|
2021-03-25 22:57:28 +00:00
|
|
|
//Misc
|
|
|
|
LongLiteralWithLowerCaseL
|
|
|
|
}
|