Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Build on Detekt defaults

Manav Rathi541ad792cc23
diff --git a/android/build.gradle.kts b/android/build.gradle.kts
index e3c030a399..750b92eae4 100644
--- a/android/build.gradle.kts
+++ b/android/build.gradle.kts
@@ -21,7 +21,10 @@ allprojects {
apply(plugin = "dev.detekt")
extensions.configure<KtfmtExtension> { kotlinLangStyle() }
- extensions.configure<DetektExtension> { config.setFrom(rootProject.file("detekt.yml")) }
+ extensions.configure<DetektExtension> {
+ buildUponDefaultConfig.set(true)
+ config.setFrom(rootProject.file("detekt.yml"))
+ }
listOf("com.android.application", "com.android.library").forEach { id ->
pluginManager.withPlugin(id) {
diff --git a/android/detekt.yml b/android/detekt.yml
index 90ee64c9e0..546b828a65 100644
--- a/android/detekt.yml
+++ b/android/detekt.yml
@@ -1,57 +1,47 @@
config:
- validation: true
warningsAsErrors: true
+complexity:
+ active: false
+
coroutines:
- active: true
GlobalCoroutineUsage:
active: true
- RedundantSuspendModifier:
- active: true
- SleepInsteadOfDelay:
- active: true
SuspendFunSwallowedCancellation:
active: true
-empty-blocks:
- active: true
- EmptyCatchBlock:
- active: true
-
-exceptions:
- active: true
- RethrowCaughtException:
- active: true
- ReturnFromFinally:
- active: true
- ThrowingExceptionFromFinally:
- active: true
+naming:
+ FunctionNaming:
+ ignoreAnnotated: ['Composable']
+ TopLevelPropertyNaming:
+ constantPattern: '[A-Z][A-Za-z0-9_]*'
potential-bugs:
- active: true
CastToNullableType:
active: true
CharArrayToStringCall:
active: true
ElseCaseInsteadOfExhaustiveWhen:
active: true
- EqualsWithHashCodeExist:
- active: true
- IgnoredReturnValue:
- active: true
- ImplicitDefaultLocale:
- active: true
- InvalidRange:
- active: true
UnnecessaryNotNullCheck:
active: true
- UnnecessaryNotNullOperator:
- active: true
- UnnecessarySafeCall:
- active: true
- UnreachableCatchBlock:
- active: true
- UnreachableCode:
- active: true
UnsafeCallOnNullableType:
- active: true
+ excludes: []
+
+style:
+ DestructuringDeclarationWithTooManyEntries:
+ active: false
+ ForbiddenComment:
+ active: false
+ LoopWithTooManyJumpStatements:
+ active: false
+ MagicNumber:
+ active: false
+ MaxLineLength:
+ active: false
+ ReturnCount:
+ active: false
+ ThrowsCount:
+ active: false
+ UnusedPrivateFunction:
+ ignoreAnnotated: ['Preview']