NOTIK Minor adjustments to Detekt rules to reflect current working practises (#5498)

* Minor adjustments to rules to reflect current working practises (including IntelliJ code style alignment)

* Adjust another rule in line with existing code style.

* rebaseline with changed detekt ruleset

* rebaseline with NodeStartup changes
This commit is contained in:
josecoll 2019-09-20 13:14:47 +01:00 committed by GitHub
parent c5dc905705
commit a7f790bc35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5265 deletions

File diff suppressed because one or more lines are too long

View File

@ -84,7 +84,7 @@ complexity:
ComplexMethod: ComplexMethod:
active: true active: true
threshold: 10 threshold: 10
ignoreSingleWhenExpression: false ignoreSingleWhenExpression: true
LabeledExpression: LabeledExpression:
active: false active: false
LargeClass: LargeClass:
@ -92,7 +92,7 @@ complexity:
threshold: 150 threshold: 150
LongMethod: LongMethod:
active: true active: true
threshold: 20 threshold: 120
LongParameterList: LongParameterList:
active: true active: true
threshold: 6 threshold: 6
@ -135,7 +135,7 @@ empty-blocks:
EmptyForBlock: EmptyForBlock:
active: true active: true
EmptyFunctionBlock: EmptyFunctionBlock:
active: true active: false
EmptyIfBlock: EmptyIfBlock:
active: true active: true
EmptyInitBlock: EmptyInitBlock:
@ -240,7 +240,7 @@ naming:
VariableNaming: VariableNaming:
active: true active: true
variablePattern: '[a-z][A-Za-z0-9]*' variablePattern: '[a-z][A-Za-z0-9]*'
privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*' privateVariablePattern: '(_)?[A-Za-z][_A-Za-z0-9]*'
excludeClassPattern: '$^' excludeClassPattern: '$^'
performance: performance:
@ -321,7 +321,7 @@ style:
ignoreEnums: false ignoreEnums: false
MaxLineLength: MaxLineLength:
active: true active: true
maxLineLength: 120 maxLineLength: 140
excludePackageStatements: false excludePackageStatements: false
excludeImportStatements: false excludeImportStatements: false
MayBeConst: MayBeConst:
@ -331,7 +331,7 @@ style:
NestedClassesVisibility: NestedClassesVisibility:
active: false active: false
NewLineAtEndOfFile: NewLineAtEndOfFile:
active: true active: false
NoTabs: NoTabs:
active: false active: false
OptionalAbstractKeyword: OptionalAbstractKeyword: