Skip to content

Latest commit

 

History

History
executable file
·
70 lines (54 loc) · 3.09 KB

README.md

File metadata and controls

executable file
·
70 lines (54 loc) · 3.09 KB

Retekt

Build Status Download
Retekt is extension rules for detekt

Usage

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
}

Rule

see example config

InterfaceNaming

check interface name

Option

  • interfacePattern: Regex for interface name

TypeParameterNaming

check type parameter name

Option

  • typeParameterPattern: Regex for type parameter name

SuspendFunction

check function type, validate suspend function

Option

  • ignorePrivateFunction: ignore private function for this checking

UnitFunction

check function type, validate unit function for no-return

Option

  • ignorePrivateFunction: ignore private function for this checking

License

This library is under MIT License

Rule

Sample

Contribute

ToDo: Write

Other

Author: @MeilCli