Use YAML array instead of a comma-separated String

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-02-11 16:29:14 +01:00
parent 9f43823bba
commit 6c091bdb72

View file

@ -59,7 +59,7 @@ complexity:
excludes: ['**/androidTest/**'] excludes: ['**/androidTest/**']
LabeledExpression: LabeledExpression:
active: false active: false
ignoredLabels: "" ignoredLabels: []
LargeClass: LargeClass:
active: true active: true
threshold: 600 threshold: 600
@ -132,7 +132,7 @@ exceptions:
active: true active: true
ExceptionRaisedInUnexpectedLocation: ExceptionRaisedInUnexpectedLocation:
active: false active: false
methodNames: 'toString,hashCode,equals,finalize' methodNames: [toString,hashCode,equals,finalize]
InstanceOfCheckForException: InstanceOfCheckForException:
active: false active: false
NotImplementedDeclaration: NotImplementedDeclaration:
@ -145,14 +145,14 @@ exceptions:
active: false active: false
SwallowedException: SwallowedException:
active: false active: false
ignoredExceptionTypes: 'InterruptedException,NumberFormatException,ParseException,MalformedURLException' ignoredExceptionTypes: [InterruptedException,NumberFormatException,ParseException,MalformedURLException]
ThrowingExceptionFromFinally: ThrowingExceptionFromFinally:
active: false active: false
ThrowingExceptionInMain: ThrowingExceptionInMain:
active: false active: false
ThrowingExceptionsWithoutMessageOrCause: ThrowingExceptionsWithoutMessageOrCause:
active: false active: false
exceptions: 'IllegalArgumentException,IllegalStateException,IOException' exceptions: [IllegalArgumentException,IllegalStateException,IOException]
ThrowingNewInstanceOfSameException: ThrowingNewInstanceOfSameException:
active: false active: false
TooGenericExceptionCaught: TooGenericExceptionCaught:
@ -190,7 +190,7 @@ naming:
enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*' enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*'
ForbiddenClassName: ForbiddenClassName:
active: false active: false
forbiddenName: '' forbiddenName: []
FunctionMaxLength: FunctionMaxLength:
active: false active: false
maximumFunctionNameLength: 30 maximumFunctionNameLength: 30
@ -291,7 +291,7 @@ style:
active: false active: false
DataClassContainsFunctions: DataClassContainsFunctions:
active: false active: false
conversionFunctionPrefix: 'to' conversionFunctionPrefix: [to]
EqualsNullCall: EqualsNullCall:
active: false active: false
EqualsOnSignatureLine: EqualsOnSignatureLine:
@ -306,19 +306,19 @@ style:
values: 'TODO:,FIXME:,STOPSHIP:' values: 'TODO:,FIXME:,STOPSHIP:'
ForbiddenImport: ForbiddenImport:
active: false active: false
imports: '' imports: []
ForbiddenVoid: ForbiddenVoid:
active: false active: false
FunctionOnlyReturningConstant: FunctionOnlyReturningConstant:
active: false active: false
ignoreOverridableFunction: true ignoreOverridableFunction: true
excludedFunctions: 'describeContents' excludedFunctions: [describeContents]
LoopWithTooManyJumpStatements: LoopWithTooManyJumpStatements:
active: false active: false
maxJumpCount: 1 maxJumpCount: 1
MagicNumber: MagicNumber:
active: true active: true
ignoreNumbers: '-1,0,1,2' ignoreNumbers: ["-1","0","1","2"]
ignoreHashCodeFunction: true ignoreHashCodeFunction: true
ignorePropertyDeclaration: false ignorePropertyDeclaration: false
ignoreConstantDeclaration: true ignoreConstantDeclaration: true
@ -362,7 +362,7 @@ style:
ReturnCount: ReturnCount:
active: true active: true
max: 2 max: 2
excludedFunctions: "equals" excludedFunctions: [equals]
excludeLabeled: false excludeLabeled: false
excludeReturnFromLambda: true excludeReturnFromLambda: true
SafeCast: SafeCast:
@ -409,4 +409,4 @@ style:
active: false active: false
WildcardImport: WildcardImport:
active: true active: true
excludeImports: 'java.util.*,kotlinx.android.synthetic.*' excludeImports: [java.util.*,kotlinx.android.synthetic.*]