* perf: improve lazy loading and remove spinner * perf: optimize message loading by caching and reducing queries * docs: update changelog * style: use constant for cache size * refactor: minor consistency improvement * fix: override loaded preview size * refactor: streamline message loading logic in scroll listener * refactor: organize some dedup related code * build: bump detekt return count limit 2 is 2 low * fix: check contacts permissions before registering observer * fix: disable fetching media resolutions in threads * refactor: remove resolution fetching related code * perf: cache MMS thread participants * refactor: remove unused BitmapFactory import * fix: invalidate participants cache when necessary * fix: return copied participants from cache * fix: adjust image loading dimensions in threads * fix: use stable ids for header items * fix: always rely on database check before flipping `allMessagesFetched`
63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
build:
|
|
maxIssues: 0
|
|
weights:
|
|
complexity: 2
|
|
LongParameterList: 2
|
|
style: 1
|
|
|
|
processors:
|
|
active: true
|
|
exclude:
|
|
- "FunctionCountProcessor"
|
|
- "PropertyCountProcessor"
|
|
|
|
config:
|
|
validation: true
|
|
|
|
complexity:
|
|
LongParameterList:
|
|
active: true
|
|
functionThreshold: 10
|
|
constructorThreshold: 8
|
|
ignoreDefaultParameters: true
|
|
ignoreAnnotated:
|
|
- "Composable"
|
|
LongMethod:
|
|
active: true
|
|
threshold: 120
|
|
ignoreAnnotated:
|
|
- "Composable"
|
|
- "Preview"
|
|
|
|
style:
|
|
MagicNumber:
|
|
active: true
|
|
ignoreAnnotated: ["Composable"]
|
|
ignoreEnums: true
|
|
ignoreNumbers: ["-1", "0", "1", "2", "42", "1000"]
|
|
MaxLineLength:
|
|
active: true
|
|
maxLineLength: 120
|
|
excludePackageStatements: true
|
|
excludeImportStatements: true
|
|
ReturnCount:
|
|
active: true
|
|
max: 4
|
|
excludeGuardClauses: true
|
|
excludes: ["**/test/**", "**/androidTest/**"]
|
|
|
|
naming:
|
|
FunctionNaming:
|
|
active: true
|
|
ignoreAnnotated: ["Composable", "Preview"]
|
|
functionPattern: "[a-z][A-Za-z0-9]*"
|
|
|
|
Compose: # io.nlopez.compose.rules
|
|
ComposableParametersOrdering:
|
|
active: true
|
|
ModifierDefaultValue:
|
|
active: true
|
|
MissingModifierDefaultValue:
|
|
active: true
|
|
PublicComposablePreview:
|
|
active: true
|