11# SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
22# SPDX-License-Identifier: GPL-3.0-or-later
33build :
4- maxIssues : 72
4+ maxIssues : 98
55 weights :
66 # complexity: 2
77 # LongParameterList: 1
@@ -53,9 +53,9 @@ complexity:
5353 active : false
5454 threshold : 10
5555 includeStaticDeclarations : false
56- ComplexMethod :
56+ CyclomaticComplexMethod :
5757 active : true
58- threshold : 10
58+ threshold : 15
5959 ignoreSingleWhenExpression : false
6060 ignoreSimpleWhenEntries : false
6161 excludes : ['**/androidTest/**']
@@ -204,7 +204,6 @@ formatting:
204204 Indentation :
205205 active : true
206206 indentSize : 4
207- continuationIndentSize : 4
208207 MaximumLineLength :
209208 active : true
210209 maxLineLength : 120
@@ -280,14 +279,12 @@ naming:
280279 active : true
281280 functionPattern : ' ^([a-z$A-Z][a-zA-Z$0-9]*)|(`.*`)$'
282281 excludeClassPattern : ' $^'
283- ignoreOverridden : true
284282 excludes :
285283 - " **/*Test.kt"
286284 FunctionParameterNaming :
287285 active : true
288286 parameterPattern : ' [a-z][A-Za-z0-9]*'
289287 excludeClassPattern : ' $^'
290- ignoreOverridden : true
291288 MatchingDeclarationName :
292289 active : true
293290 MemberNameEqualsClassName :
@@ -317,7 +314,6 @@ naming:
317314 variablePattern : ' [a-z][A-Za-z0-9]*'
318315 privateVariablePattern : ' (_)?[a-z][A-Za-z0-9]*'
319316 excludeClassPattern : ' $^'
320- ignoreOverridden : true
321317
322318performance :
323319 active : true
@@ -332,8 +328,6 @@ performance:
332328
333329potential-bugs :
334330 active : true
335- DuplicateCaseInWhenExpression :
336- active : true
337331 EqualsAlwaysReturnsTrueOrFalse :
338332 active : false
339333 EqualsWithHashCodeExist :
@@ -369,7 +363,8 @@ style:
369363 active : false
370364 DataClassContainsFunctions :
371365 active : false
372- conversionFunctionPrefix : ' to'
366+ conversionFunctionPrefix :
367+ - to
373368 EqualsNullCall :
374369 active : false
375370 EqualsOnSignatureLine :
@@ -381,7 +376,7 @@ style:
381376 includeLineWrapping : false
382377 ForbiddenComment :
383378 active : true
384- values :
379+ comments :
385380 - " TODO:"
386381 - " FIXME:"
387382 - " STOPSHIP:"
@@ -393,7 +388,8 @@ style:
393388 FunctionOnlyReturningConstant :
394389 active : false
395390 ignoreOverridableFunction : true
396- excludedFunctions : ' describeContents'
391+ excludedFunctions :
392+ - describeContents
397393 LoopWithTooManyJumpStatements :
398394 active : false
399395 maxJumpCount : 1
@@ -409,7 +405,7 @@ style:
409405 ignoreEnums : false
410406 excludes :
411407 - " **/*Test.kt"
412- MandatoryBracesIfStatements :
408+ BracesOnIfStatements :
413409 active : false
414410 MaxLineLength :
415411 active : true
@@ -431,7 +427,7 @@ style:
431427 active : true
432428 OptionalUnit :
433429 active : false
434- OptionalWhenBraces :
430+ BracesOnWhenStatements :
435431 active : false
436432 PreferToOverPairSyntax :
437433 active : false
@@ -442,7 +438,8 @@ style:
442438 ReturnCount :
443439 active : true
444440 max : 2
445- excludedFunctions : " equals"
441+ excludedFunctions :
442+ - equals
446443 excludeLabeled : false
447444 excludeReturnFromLambda : true
448445 SafeCast :
0 commit comments