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.LoopWithTooManyJumpStatements

      Error prone
      Medium

      Too many jump statements

      detekt.MagicNumber

      Error prone
      Medium

      Replace magic numbers with a constant

      detekt.PackageNaming

      Error prone
      Medium

      Package name should match the pattern: [a-z]+(\\.[a-z][A-Za-z0-9]*)*

      detekt.TooGenericExceptionCaught

      Error prone
      Medium

      Caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.

      detekt.ImplicitDefaultLocale

      Error prone
      Medium

      String.format() uses implicitly default locale for string formatting.

      Learn more

      detekt.SwallowedException

      Error prone
      Medium

      Exceptions should not be swallowed.