facebook pixelCodiga Analysis Scala Rules, severity warning , category best practice
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.MultipleStringLiteralsChecker

Best practice
Warning

Literal string appears too much in the file

Learn more

org.scalastyle.scalariform.IfBraceChecker

Best practice
Warning

Checks that if statements have braces

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