mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Updated detekt configuration:
- Removed 'Preview' from `ignoreAnnotatedFunctions` in Complexity rule set. 'not supported in this version' - Updated `constantPattern` to `[A-Z][_A-Z0-9]*` for TopLevelPropertyNaming rule. - Added 'Preview' to `ignoreAnnotated` in UnusedPrivateMember rule set.
This commit is contained in:
parent
29fdbc1913
commit
c11f8561db
@ -106,7 +106,6 @@ complexity:
|
|||||||
ignoreDeprecated: false
|
ignoreDeprecated: false
|
||||||
ignorePrivate: false
|
ignorePrivate: false
|
||||||
ignoreOverridden: false
|
ignoreOverridden: false
|
||||||
ignoreAnnotatedFunctions: ['Preview']
|
|
||||||
|
|
||||||
coroutines:
|
coroutines:
|
||||||
active: true
|
active: true
|
||||||
@ -262,7 +261,7 @@ naming:
|
|||||||
TopLevelPropertyNaming:
|
TopLevelPropertyNaming:
|
||||||
active: true
|
active: true
|
||||||
excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt"
|
excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt"
|
||||||
constantPattern: '[A-Z][A-Za-z0-9]*'
|
constantPattern: '[A-Z][_A-Z0-9]*'
|
||||||
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
||||||
privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
|
privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
|
||||||
VariableMaxLength:
|
VariableMaxLength:
|
||||||
@ -476,6 +475,7 @@ style:
|
|||||||
UnusedPrivateMember:
|
UnusedPrivateMember:
|
||||||
active: false
|
active: false
|
||||||
allowedNames: "(_|ignored|expected|serialVersionUID)"
|
allowedNames: "(_|ignored|expected|serialVersionUID)"
|
||||||
|
ignoreAnnotated: ['Preview']
|
||||||
UseArrayLiteralsInAnnotations:
|
UseArrayLiteralsInAnnotations:
|
||||||
active: false
|
active: false
|
||||||
UseCheckOrError:
|
UseCheckOrError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user