hisakaz0 / detekt-rules-ext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

detekt-rules-ext

custom detekt extension rules for detekt

setup

add dependencies to this.

repositories {
    allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }
}

dependencies {
    detektPlugins("com.github.hisakaz0:detekt-rules-ext:1.0.0")
}

configuration

disable default rule to avoid conflict.

complexity:
   LongMethod:
      active: false

then, configure custom rules.

ExtComposeRuleSet:
   LongMethod:
      active: true
      threshold: 60         # for normal function
      composeThreshold: 100 # for composable function

About

License:Apache License 2.0


Languages

Language:Kotlin 100.0%