facebook pixelCodiga Analysis Kotlin Rules, severity warning , category error prone
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.LoopWithTooManyJumpStatements

Error prone
Warning

Too many jump statements

detekt.MagicNumber

Error prone
Warning

Replace magic numbers with a constant

detekt.PackageNaming

Error prone
Warning

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

detekt.TooGenericExceptionCaught

Error prone
Warning

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

detekt.ImplicitDefaultLocale

Error prone
Warning

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

Learn more

detekt.SwallowedException

Error prone
Warning

Exceptions should not be swallowed.