BACK TO LIST

Kotlin rules

Codiga provides multiple sets of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.

detekt.EmptyWhileBlock

Design
Informational

This empty block of code can be removed.

detekt.FunctionOnlyReturningConstant

Design
Warning

Function is returning a constant. Prefer declaring a constant instead.

detekt.LargeClass

Design
Error

Detect classes that are too large

detekt.LongMethod

Design
Warning

Function is too long

detekt.LongParameterList

Design
Warning

Too many parameters

detekt.MaxLineLength

Design
Warning

Line is too long

detekt.MayBeConst

Design
Error

Refactor into a const

detekt.TooManyFunctions

Design
Warning

Too many functions in object

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.