Retekt is extension rules for detekt
build.gradle
allprojects {
repositories {
google()
jcenter()
maven{ url "https://dl.bintray.com/mobile-act/RetektRule" } // need!
}
}
dependencies {
detektPlugins 'mobile-act:retekt:VERSION' // adapt latest version
}
see example config
check interface name
interfacePattern
: Regex for interface name
check type parameter name
typeParameterPattern
: Regex for type parameter name
check function type, validate suspend function
ignorePrivateFunction
: ignore private function for this checking
check function type, validate unit function for no-return
ignorePrivateFunction
: ignore private function for this checking
This library is under MIT License
- using Kotlin Standard Library, published by Apache License 2.0
- using detekt, published by Apache License 2.0
- using JUnit5, published by Eclipse Public License 2.0
- using Kotlin Standard Library, published by Apache License 2.0
- using AndroidX, published by Apache License 2.0
- using ConstraintLayout, published by Apache License 2.0
- using detekt, published by Apache License 2.0
- using AndroidX Test, published by Apache License 2.0
- using JUnit4, published by Eclipse Public License 1.0
ToDo: Write
Author: @MeilCli