Archive
Indicators & Methodology
-
Attribute, classes and methods should follow a naming convention
Why you should care You may think naming conventions are purely cosmetic, and youβre not completely wrong. However, this is a signature of a…
-
Avoid literal numbers (i.e. Magic numbers are not so magic)
Why you should care A magic number is a direct usage of a number in the code (e.g. βif($foo > 65)β) which refers to…
-
Too many controversial, unsafe or deprecated keywords in procedure divisions
Too many controversial, unsafe or deprecated keywords in procedure divisions This code insights looks in COBOL procedure divisions for a list of possible deprecated…
-
Operators and operands should use appropriate spacing to help readability
Operators and operands should use appropriate spacing to help readability This code insights verifies that operators and operands are generally surrounded with spaces for…
-
Levels of logic complexity and conditions seem to be unbalanced
Why you should care Managing software complexity is an art of balancing the different natures of complexity that code can exhibit. Ensuring that logical…
-
Avoid using “this” unless it points to a newly created object (and tested)
Why you should care In some contexts, using the keyword “this” could impact software reliability and lead to unexpected behaviors. More specifically, in a…
-
Wildcard imports should not be used too frequently
Wildcard imports should not be used too frequently This code insight detects and counts the number of import statements with a wildcard (e.g. “import…
-
Exceptions shouldn’t be caught with system exception classes
Exceptions shouldn’t be caught with system exception classes This code insight detects and counts the usage of generic exception catches like catch(β¦), Exception, Throwable,…
-
Avoid Implied Typecasting
Why you should care Software development is an exact science and software doesnβt really like having doubts. Some programming languages have different ways to…