mirror of
https://github.com/ProtonMail/protoncore_android.git
synced 2026-05-15 09:50:41 +00:00
chore(plugins-detekt): Added rules introduced in 1.22.0.
This commit is contained in:
@@ -311,6 +311,19 @@ formatting:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
insertFinalNewLine: true
|
||||
FunctionReturnTypeSpacing:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
FunctionSignature:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
forceMultilineWhenParameterCountGreaterOrEqualThan: 3
|
||||
functionBodyExpressionWrapping: 'default'
|
||||
maxLineLength: 120
|
||||
indentSize: 4
|
||||
FunctionStartOfBodySpacing:
|
||||
active: false
|
||||
autoCorrect: false
|
||||
FunKeywordSpacing:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
@@ -378,9 +391,15 @@ formatting:
|
||||
# WildcardImports already enabled
|
||||
NoWildcardImports:
|
||||
active: false
|
||||
NullableTypeSpacing:
|
||||
active: false
|
||||
autoCorrect: false
|
||||
PackageName:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
ParameterListSpacing:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
ParameterListWrapping:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
@@ -426,6 +445,9 @@ formatting:
|
||||
SpacingBetweenDeclarationsWithComments:
|
||||
active: false
|
||||
# autoCorrect: true
|
||||
SpacingBetweenFunctionNameAndOpeningParenthesis:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
StringTemplate:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
@@ -440,6 +462,9 @@ formatting:
|
||||
TypeArgumentListSpacing:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
TypeParameterListSpacing:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
UnnecessaryParenthesesBeforeTrailingLambda:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
@@ -553,6 +578,8 @@ performance:
|
||||
active: true
|
||||
SpreadOperator:
|
||||
active: false
|
||||
UnnecessaryPartOfBinaryExpression:
|
||||
active: false
|
||||
UnnecessaryTemporaryInstantiation:
|
||||
active: true
|
||||
|
||||
@@ -642,6 +669,8 @@ potential-bugs:
|
||||
active: true
|
||||
UnconditionalJumpStatementInLoop:
|
||||
active: false
|
||||
UnnecessaryNotNullCheck:
|
||||
active: true
|
||||
UnnecessaryNotNullOperator:
|
||||
active: true
|
||||
UnnecessarySafeCall:
|
||||
@@ -661,6 +690,8 @@ potential-bugs:
|
||||
|
||||
style:
|
||||
active: true
|
||||
AlsoCouldBeApply:
|
||||
active: true
|
||||
# This rule ensures class contents are ordered as follows as recommended by the Kotlin Coding Conventions
|
||||
# ( see https://kotlinlang.org/docs/reference/coding-conventions.html#class-layout ):
|
||||
# Mandatory order
|
||||
@@ -760,6 +791,9 @@ style:
|
||||
active: true
|
||||
MultilineLambdaItParameter:
|
||||
active: false
|
||||
MultilineRawStringIndentation:
|
||||
active: true
|
||||
indentSize: 4
|
||||
NestedClassesVisibility:
|
||||
active: true
|
||||
NewLineAtEndOfFile:
|
||||
@@ -843,6 +877,8 @@ style:
|
||||
max: 3
|
||||
TrailingWhitespace:
|
||||
active: false
|
||||
TrimMultilineRawString:
|
||||
active: true
|
||||
UnderscoresInNumericLiterals:
|
||||
active: true
|
||||
acceptableDecimalLength: 5
|
||||
@@ -918,6 +954,8 @@ style:
|
||||
# flag require calls for not-null check that can be replaced with a requireNotNull call.
|
||||
UseRequireNotNull:
|
||||
active: true
|
||||
UseSumOfInsteadOfFlatMapSize:
|
||||
active: true
|
||||
UselessCallOnNotNull:
|
||||
active: true
|
||||
UtilityClassWithPublicConstructor:
|
||||
|
||||
Reference in New Issue
Block a user