Detekt configuration

Detekt is a popular static code analysis tool for the Kotlin programming language. It operates on the abstract syntax tree provided by the Kotlin compiler. Detekt requires configuration via a detekt.yml configuration file as detailed in Detekt's documentation .

If you don't specify your custom configuration file we use our default below. We suggest to add your own configuration file into your repository root directory to be able to specify your coding and quality standards.

detekt.yml

complexity:
    ComplexCondition:
        threshold: 3
    ComplexInterface:
        threshold: 8
    ComplexMethod:
        threshold: 10
    LargeClass:
        threshold: 400
    LongMethod:
        threshold: 40
    LongParameterList:
        functionThreshold: 4
        constructorThreshold: 5
    MethodOverloading:
        threshold: 5
    TooManyFunctions:
        thresholdInFiles: 10
        thresholdInClasses: 10
        thresholdInInterfaces: 10
        thresholdInObjects: 10
        thresholdInEnums: 10