Archive
Product
-
The code contains paragraphs having the same name
Paragraphs having the same name is ambigous, and should be strongly avoided.
-
The code contains too many bad area A usages
In a cobol file, area A (the first four columns) are reserved for divions, sections names, paragraph names and level 01 data declaration.
-
Optional property declarations should use ‘?’ syntax
In TypeScript there are several ways to declare an optional property, i.e. a property which might be missing from an object: adding β| undefinedβ…
-
Errors should not be created without being thrown
Creating a new Error without actually throwing it is useless and is probably due to a mistake.
-
Avoid explicit type when it can be inferred from literal value affected
For code readability purpose, if a property initializer is a scalar value or the return type can be clearly inferred from the body then…
-
Avoid structures initializations with unamed fields
You should almost always specify field names when initializing structs. This is now enforced by go vet.
-
Avoid self-assigned variables
There is no reason to re-assign a variable to itself. Either this statement is redundant and should be removed, or the re-assignment is a…
-
Avoid binary operators with identical members
Using the same value on either side of a binary operator is almost always a mistake. In the case of logical operators, it is…
-
Avoid ‘if/else if’ & cases statements having the same condition
A chain of if/else if statements is evaluated from top to bottom. At most, only one branch will be executed: the first one with…
-
Avoid dead code
Dead code are instructions that can never be reached. Obvious dead code are instructions that follow unconditional jumps in the same statement block. Dead…