facebook pixelKotlin Static Analysis Rules
BACK TO LIST

Kotlin rules

Codiga provides multiple set 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.ComplexCondition

      Error prone
      High

      Condition is too complex

      detekt.EmptyElseBlock

      Error prone
      High

      Empty block of code can be removed.

      Learn more

      detekt.EmptyFunctionBlock

      Error prone
      High

      Empty function block can be removed

      detekt.EmptyIfBlock

      Error prone
      High

      Empty if block can be removed

      detekt.EmptySecondaryConstructor

      Error prone
      High

      Empty secondary constructor can be removed

      detekt.EqualsWithHashCodeExist

      Error prone
      High

      A class should always override hashCode when overriding equals and the other way around.

      detekt.ThrowingExceptionsWithoutMessageOrCause

      Error prone
      High

      Exceptions should always call one of the constructor overloads to provide a message or a cause.