Archive
Cost
-
Unused function parameters can make code unreadable
This code insight searches all the Function and Methods having unused parameters. Review the source code in order to try to reduce the number…
-
Ternary operators in Java can make code unreadable
Ternary operators in Java can make code unreadable This code insight counts one violation each time a ternary operator is encountered. Note : Do…
-
Having too many class definitions in Java can be unreadable
Avoid too many classes in the same file This code insight counts one occurrence each time a source file is found with multiple class…
-
Too many uses of ternary operators can increase costs
Too many uses of ternary operators can increase costs Count one violation each time the operator (… ? … : …) is used. Grep…
-
Too many class implementations can increase costs
Too many class implementations can increase costs Count the number of distinct classes involved in the scope of implemented methods. ex : MyNamespace::MyClasse1 ::MyMethods…
-
Too many class definitions can cause agility issues
Too many class definitions can cause agility issues This code insight counts number of classes definition pattern : class xxx { template <…> class…
-
Automatic numbering increases costs
Automatic numbering increases costs This code insight counts one violation each a string contains empty format replacement fields. bad print “{} is {}”.format(“life”,”hard”) good…
-
End keyword highlights end of execution
Why you should care The END keyword is useful as it terminates a PL/SQL block. This keyword is found at the end of procedures,…
-
Object Qualification improves readability
Why you should care Object Qualification is the process of determining whether a persistent object satisfies a set of specified conditions. It is typically…
-
Documentation facilitates Code Maintainability
Why you should care Documentation is useful as it helps maintaining and embedding the code well. Undocumented code causes problems in the code by…