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:
Theodoro Loureiro mota
2024-01-28 18:29:55 -03:00
committed by GitHub
parent 9c4d2b087f
commit cc09230e26
13 changed files with 1403 additions and 33 deletions

1327
config/detekt/baseline.xml Normal file

File diff suppressed because it is too large Load Diff

19
config/detekt/detekt.yml Normal file
View 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' ]