|
@@ -1,30 +1,3 @@
|
|
|
-autoCorrect: true
|
|
|
-
|
|
|
-test-pattern: # Configure exclusions for test sources
|
|
|
- active: true
|
|
|
- patterns: # Test file regexes
|
|
|
- - '.*/test/.*'
|
|
|
- - '.*/androidTest/.*'
|
|
|
- - '.*Test.kt'
|
|
|
- - '.*Spec.kt'
|
|
|
- - '.*Spek.kt'
|
|
|
- exclude-rule-sets:
|
|
|
- - 'comments'
|
|
|
- exclude-rules:
|
|
|
- - 'NamingRules'
|
|
|
- - 'WildcardImport'
|
|
|
- - 'MagicNumber'
|
|
|
- - 'MaxLineLength'
|
|
|
- - 'LateinitUsage'
|
|
|
- - 'StringLiteralDuplication'
|
|
|
- - 'SpreadOperator'
|
|
|
- - 'TooManyFunctions'
|
|
|
- - 'ForEachOnRange'
|
|
|
- - 'FunctionMaxLength'
|
|
|
- - 'TooGenericExceptionCaught'
|
|
|
- - 'TooGenericExceptionThrown'
|
|
|
- - 'InstanceOfCheckForException'
|
|
|
-
|
|
|
build:
|
|
|
maxIssues: 10
|
|
|
weights:
|
|
@@ -138,7 +111,7 @@ empty-blocks:
|
|
|
active: true
|
|
|
EmptyFunctionBlock:
|
|
|
active: true
|
|
|
- ignoreOverriddenFunctions: false
|
|
|
+ ignoreOverridden: false
|
|
|
EmptyIfBlock:
|
|
|
active: true
|
|
|
EmptyInitBlock:
|
|
@@ -202,23 +175,18 @@ exceptions:
|
|
|
formatting:
|
|
|
active: true
|
|
|
android: false
|
|
|
- autoCorrect: true
|
|
|
ChainWrapping:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
CommentSpacing:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
Filename:
|
|
|
active: true
|
|
|
FinalNewline:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
ImportOrdering:
|
|
|
active: false
|
|
|
Indentation:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
indentSize: 4
|
|
|
continuationIndentSize: 4
|
|
|
MaximumLineLength:
|
|
@@ -226,73 +194,49 @@ formatting:
|
|
|
maxLineLength: 120
|
|
|
ModifierOrdering:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoBlankLineBeforeRbrace:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoConsecutiveBlankLines:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoEmptyClassBody:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
- NoItParamInMultilineLambda:
|
|
|
- active: false
|
|
|
NoLineBreakAfterElse:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoLineBreakBeforeAssignment:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoMultipleSpaces:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoSemicolons:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoTrailingSpaces:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoUnitReturn:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoUnusedImports:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
NoWildcardImports:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
PackageName:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
ParameterListWrapping:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
indentSize: 4
|
|
|
SpacingAroundColon:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
SpacingAroundComma:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
SpacingAroundCurly:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
SpacingAroundKeyword:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
SpacingAroundOperators:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
SpacingAroundParens:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
SpacingAroundRangeOperator:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
StringTemplate:
|
|
|
active: true
|
|
|
- autoCorrect: true
|
|
|
|
|
|
naming:
|
|
|
active: true
|
|
@@ -325,12 +269,12 @@ naming:
|
|
|
active: true
|
|
|
parameterPattern: '[a-z][A-Za-z0-9]*'
|
|
|
excludeClassPattern: '$^'
|
|
|
- ignoreOverriddenFunctions: true
|
|
|
+ ignoreOverridden: true
|
|
|
MatchingDeclarationName:
|
|
|
active: true
|
|
|
MemberNameEqualsClassName:
|
|
|
active: false
|
|
|
- ignoreOverriddenFunction: true
|
|
|
+ ignoreOverridden: true
|
|
|
ObjectPropertyNaming:
|
|
|
active: true
|
|
|
constantPattern: '[A-Za-z][_A-Za-z0-9]*'
|
|
@@ -442,6 +386,7 @@ style:
|
|
|
ignoreAnnotation: false
|
|
|
ignoreNamedArgument: true
|
|
|
ignoreEnums: false
|
|
|
+ excludes: "**/*Test.kt"
|
|
|
MandatoryBracesIfStatements:
|
|
|
active: false
|
|
|
MaxLineLength:
|