feat: enhance code readability by applying consistent formatting and style adjustments across multiple files

This commit is contained in:
2025-11-11 23:18:50 +01:00
parent 7e4896fc69
commit a7fff59f8c
10 changed files with 309 additions and 193 deletions
+70
View File
@@ -0,0 +1,70 @@
config:
validation: true
warningsAsErrors: false
processors:
active: true
build:
maxIssues: 400 # allow current backlog without failing build
excludeCorrectable: false
comments:
active: true
style:
MagicNumber:
active: false # disabled until numeric constants consolidated
WildcardImport:
active: false
excludes: [ '**/test/**', '**/androidTest/**' ]
MaxLineLength:
active: true
maxLineLength: 200
excludePackageStatements: true
excludeImportStatements: true
excludeCommentStatements: true
complexity:
LongMethod:
active: true
threshold: 600
ignoreAnnotated: [ 'Composable' ]
CyclomaticComplexMethod:
active: true
threshold: 80
ignoreAnnotated: [ 'Composable' ]
LongParameterList:
active: true
functionThreshold: 16
constructorThreshold: 10
ignoreDefaultParameters: true
ignoreAnnotated: [ 'Composable' ]
TooManyFunctions:
active: true
thresholdInClasses: 80
thresholdInInterfaces: 50
thresholdInObjects: 50
thresholdInFiles: 90
exceptions:
TooGenericExceptionCaught:
active: true
exceptionNames:
- 'java.lang.Exception'
- 'java.lang.RuntimeException'
- 'java.lang.Throwable'
allowedExceptionNameRegex: '_|(ignore|expected)'
ignoreAnnotated: [ 'Composable' ]
SwallowedException:
active: true # enable to surface real issues
empty-blocks:
active: true
performance:
active: true
naming:
FunctionNaming:
active: false