mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-29 13:27:57 +01:00
Adding Detekt in the project (#216)
* Removing ktlint * Removing compose lint * Adding initial Detekt config * Setting up detekt config * Adding detekt baseline * Fixing workflows * Moving to a module based solution * Adding new line * Adding new line * Updating baseline * Addressing PR suggestions * Regenerating baseline.xml * Cleanup --------- Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9c4d2b087f
commit
cc09230e26
1327
config/detekt/baseline.xml
Normal file
1327
config/detekt/baseline.xml
Normal file
File diff suppressed because it is too large
Load Diff
19
config/detekt/detekt.yml
Normal file
19
config/detekt/detekt.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
naming:
|
||||
FunctionNaming:
|
||||
functionPattern: '[a-z][a-zA-Z0-9]*'
|
||||
ignoreAnnotated: [ 'Composable' ]
|
||||
TopLevelPropertyNaming:
|
||||
constantPattern: '[A-Z][A-Za-z0-9]*'
|
||||
|
||||
complexity:
|
||||
LongParameterList:
|
||||
functionThreshold: 6
|
||||
constructorThreshold: 7
|
||||
ignoreDefaultParameters: true
|
||||
|
||||
style:
|
||||
MagicNumber:
|
||||
ignorePropertyDeclaration: true
|
||||
ignoreCompanionObjectPropertyDeclaration: true
|
||||
UnusedPrivateMember:
|
||||
ignoreAnnotated: [ 'Preview' ]
|
||||
Reference in New Issue
Block a user