Files
jellyfin-android/detekt.yml
renovate[bot] 1500565f64 Update detekt to v1.23.7 (#1094)
* Update detekt to v1.23.7

* Fix detekt config deprecation

* Update ForbiddenComment detekt rule configuration

* Fix new detekt warnings

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Maxr1998 <max.rumpf1998@gmail.com>
2025-01-27 01:06:17 +01:00

63 lines
1.3 KiB
YAML

build:
maxIssues: 0
complexity:
CyclomaticComplexMethod:
ignoreSimpleWhenEntries: true
LongParameterList:
constructorThreshold: 10
functionThreshold: 10
TooManyFunctions:
thresholdInFiles: 16
thresholdInClasses: 20
thresholdInInterfaces: 8
thresholdInObjects: 16
thresholdInEnums: 8
ignoreOverridden: true
ignoreDeprecated: true
exceptions:
SwallowedException:
active: false
formatting:
MaximumLineLength:
# Already handled by detekt itself
active: false
NoWildcardImports:
# Already handled by detekt itself
active: false
PackageName:
# Already handled by detekt itself
active: false
TrailingCommaOnCallSite:
active: true
useTrailingCommaOnCallSite: true
TrailingCommaOnDeclarationSite:
active: true
useTrailingCommaOnDeclarationSite: true
naming:
FunctionNaming:
ignoreAnnotated:
- Composable
PackageNaming:
# Package names must be lowercase letters
packagePattern: '[a-z]+(\.[a-z]+)*'
performance:
SpreadOperator:
active: false
style:
ForbiddenComment:
# Allow TODOs
comments: [ 'FIXME:', 'STOPSHIP:' ]
LoopWithTooManyJumpStatements:
maxJumpCount: 2
MaxLineLength:
maxLineLength: 200
ReturnCount:
excludeGuardClauses: true
max: 3