Archive
Product
-
A line of code shouldn’t be too long (to help readability)
A line of code shouldn’t be too long (to help readability) This code insight counts the number of characters for each line of code…
-
Code indentation, line, and character encoding formats should be consistent
Code indentation, line, and character encoding formats should be consistent This code insights detects when different code formatting styles are heterogeneous (CRLF, CR or…
-
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…