facebook pixelCodiga Analysis Scala Rules, severity warning
BACK TO LIST

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

org.scalastyle.scalariform.ClassNamesChecker

Design
Warning

Incorrect class name

Learn more

org.scalastyle.scalariform.MultipleStringLiteralsChecker

Best practice
Warning

Literal string appears too much in the file

org.scalastyle.scalariform.ClassTypeParameterChecker

Code style
Warning

Checks that type parameter to a class matches a regular expression

org.scalastyle.scalariform.IfBraceChecker

Best practice
Warning

Checks that if statements have braces

org.scalastyle.scalariform.LowercasePatternMatchChecker

Error prone
Warning

Checks that a case statement pattern match is not lower case, as this can cause confusion

org.scalastyle.scalariform.MethodLengthChecker

Best practice
Warning

Checks that methods do not exceed a maximum length

org.scalastyle.scalariform.NumberOfMethodsInTypeChecker

Best practice
Warning

Check that a class / trait / object does not have too many methods

org.scalastyle.scalariform.PublicMethodsHaveTypeChecker

Best practice
Warning

Check that a method has an explicit return type, it is not inferred

org.scalastyle.scalariform.ReturnChecker

Best practice
Warning

Check that return is not used

org.scalastyle.scalariform.NumberOfTypesChecker

Best practice
Warning

Number of types declared in the file exceeds 30