From 29a8df61a95c7f22962a95a3c8312bb8709dcea8 Mon Sep 17 00:00:00 2001 From: Denis Karmyshakov Date: Fri, 9 Nov 2018 13:06:50 +0300 Subject: [PATCH] Detekt rules fixes --- kotlin/detekt-config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kotlin/detekt-config.yml b/kotlin/detekt-config.yml index 969ac2f..200e9ed 100644 --- a/kotlin/detekt-config.yml +++ b/kotlin/detekt-config.yml @@ -63,8 +63,8 @@ complexity: ComplexMethod: active: true threshold: 10 - ignoreSingleWhenExpression: false - ignoreSimpleWhenEntries: false + ignoreSingleWhenExpression: true + ignoreSimpleWhenEntries: true LabeledExpression: active: true LargeClass: @@ -82,7 +82,7 @@ complexity: threshold: 5 NestedBlockDepth: active: true - threshold: 3 + threshold: 4 StringLiteralDuplication: active: true threshold: 3 @@ -219,7 +219,7 @@ naming: active: true constantPattern: '[A-Za-z][_A-Za-z0-9]*' propertyPattern: '[A-Za-z][_A-Za-z0-9]*' - privatePropertyPattern: '(_)?[A-Za-z][A-Za-z0-9]*' + privatePropertyPattern: '[A-Za-z][_A-Za-z0-9]*' PackageNaming: active: true packagePattern: '^[a-z]+(\.[a-z][a-z0-9]*)*$' @@ -227,7 +227,7 @@ naming: active: true constantPattern: '[A-Z][_A-Z0-9]*' propertyPattern: '[A-Za-z][_A-Za-z0-9]*' - privatePropertyPattern: '(_)?[A-Za-z][A-Za-z0-9]*' + privatePropertyPattern: '[A-Za-z][_A-Za-z0-9]*' VariableMaxLength: active: false maximumVariableNameLength: 64 @@ -347,7 +347,7 @@ style: OptionalUnit: active: true OptionalWhenBraces: - active: true + active: false PreferToOverPairSyntax: active: true ProtectedMemberInFinalClass: