@@ -52,14 +52,14 @@ complexity:
5252 active : true
5353 threshold : 12
5454 includeStaticDeclarations : false
55- ComplexMethod :
55+ CyclomaticComplexMethod :
5656 active : true
5757 threshold : 20
5858 ignoreSingleWhenExpression : true
5959 ignoreSimpleWhenEntries : true
6060 LabeledExpression :
6161 active : true
62- ignoredLabels : " "
62+ ignoredLabels : []
6363 LargeClass :
6464 active : true
6565 threshold : 600
@@ -72,7 +72,7 @@ complexity:
7272 constructorThreshold : 6
7373 ignoreDefaultParameters : true
7474 MethodOverloading :
75- active : true
75+ active : false
7676 threshold : 7
7777 NestedBlockDepth :
7878 active : true
@@ -131,7 +131,7 @@ exceptions:
131131 active : true
132132 ExceptionRaisedInUnexpectedLocation :
133133 active : true
134- methodNames : ' toString, hashCode, equals, finalize'
134+ methodNames : [ 'toString', ' hashCode', ' equals', ' finalize']
135135 InstanceOfCheckForException :
136136 active : true
137137 NotImplementedDeclaration :
@@ -144,14 +144,14 @@ exceptions:
144144 active : true
145145 SwallowedException :
146146 active : true
147- ignoredExceptionTypes : ' InterruptedException, NumberFormatException, ParseException, MalformedURLException'
147+ ignoredExceptionTypes : [ 'InterruptedException', ' NumberFormatException', ' ParseException', ' MalformedURLException']
148148 ThrowingExceptionFromFinally :
149149 active : true
150150 ThrowingExceptionInMain :
151151 active : true
152152 ThrowingExceptionsWithoutMessageOrCause :
153153 active : true
154- exceptions : ' IllegalArgumentException, IllegalStateException, IOException'
154+ exceptions : [ 'IllegalArgumentException', ' IllegalStateException', ' IOException']
155155 ThrowingNewInstanceOfSameException :
156156 active : true
157157 TooGenericExceptionCaught :
@@ -195,7 +195,6 @@ formatting:
195195 active : true
196196 autoCorrect : false
197197 indentSize : 4
198- continuationIndentSize : 4
199198 MaximumLineLength :
200199 active : false
201200 maxLineLength : 120
@@ -284,7 +283,7 @@ naming:
284283 enumEntryPattern : ' ^[A-Z][_a-zA-Z0-9]*'
285284 ForbiddenClassName :
286285 active : false
287- forbiddenName : ' '
286+ forbiddenName : []
288287 FunctionMaxLength :
289288 active : true
290289 maximumFunctionNameLength : 64
@@ -295,12 +294,10 @@ naming:
295294 active : true
296295 functionPattern : ' ^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
297296 excludeClassPattern : ' $^'
298- ignoreOverridden : true
299297 FunctionParameterNaming :
300298 active : true
301299 parameterPattern : ' [a-z][A-Za-z0-9]*'
302300 excludeClassPattern : ' $^'
303- ignoreOverridden : true
304301 MatchingDeclarationName :
305302 active : true
306303 MemberNameEqualsClassName :
@@ -330,7 +327,6 @@ naming:
330327 variablePattern : ' [a-z][A-Za-z0-9]*'
331328 privateVariablePattern : ' (_)?[a-z][A-Za-z0-9]*'
332329 excludeClassPattern : ' $^'
333- ignoreOverridden : true
334330
335331performance :
336332 active : true
@@ -345,8 +341,6 @@ performance:
345341
346342potential-bugs :
347343 active : true
348- DuplicateCaseInWhenExpression :
349- active : true
350344 EqualsAlwaysReturnsTrueOrFalse :
351345 active : true
352346 EqualsWithHashCodeExist :
@@ -382,7 +376,7 @@ style:
382376 active : true
383377 DataClassContainsFunctions :
384378 active : false
385- conversionFunctionPrefix : ' as'
379+ conversionFunctionPrefix : [ 'as']
386380 EqualsNullCall :
387381 active : true
388382 EqualsOnSignatureLine :
@@ -394,31 +388,33 @@ style:
394388 includeLineWrapping : false
395389 ForbiddenComment :
396390 active : true
397- values : ' TODO:, FIXME:, STOPSHIP:'
391+ comments : [' FIXME:', ' STOPSHIP:', 'TODO:']
398392 ForbiddenImport :
399393 active : false
400- imports : ' '
394+ imports : []
401395 ForbiddenVoid :
402396 active : true
403397 FunctionOnlyReturningConstant :
404398 active : true
405399 ignoreOverridableFunction : true
406- excludedFunctions : ' describeContents'
400+ excludedFunctions : [ 'describeContents']
407401 LoopWithTooManyJumpStatements :
408402 active : true
409403 maxJumpCount : 2
410404 MagicNumber :
411405 active : true
412- ignoreNumbers : ' -1,0,1,2,3, 60'
406+ ignoreNumbers : [ '-1', '0', '1', '2', '3', ' 60']
413407 ignoreHashCodeFunction : true
414408 ignorePropertyDeclaration : false
415409 ignoreConstantDeclaration : true
416410 ignoreCompanionObjectPropertyDeclaration : true
417411 ignoreAnnotation : false
418412 ignoreNamedArgument : true
419413 ignoreEnums : false
420- MandatoryBracesIfStatements :
414+ BracesOnIfStatements :
421415 active : true
416+ singleLine : ' never'
417+ multiLine : ' always'
422418 MaxLineLength :
423419 active : true
424420 maxLineLength : 120
@@ -439,8 +435,10 @@ style:
439435 active : true
440436 OptionalUnit :
441437 active : true
442- OptionalWhenBraces :
438+ BracesOnWhenStatements :
443439 active : false
440+ singleLine : ' never'
441+ multiLine : ' necessary'
444442 PreferToOverPairSyntax :
445443 active : false
446444 ProtectedMemberInFinalClass :
@@ -450,7 +448,7 @@ style:
450448 ReturnCount :
451449 active : false
452450 max : 2
453- excludedFunctions : " equals"
451+ excludedFunctions : [ "equals"]
454452 excludeLabeled : false
455453 excludeReturnFromLambda : true
456454 SafeCast :
@@ -496,4 +494,4 @@ style:
496494 active : true
497495 WildcardImport :
498496 active : false
499- excludeImports : ' java.util.*, kotlinx.android.synthetic.*'
497+ excludeImports : [ 'java.util.*', ' kotlinx.android.synthetic.*']
0 commit comments