Archive
Code Reliability
-
The code contains modifications of buildtins objects : Object, Array or Function
Modifying builtins like Object.prototype and Array.prototype are strictly forbidden. Modifying other builtins like Function.prototype is less dangerous but still leads to hard to debug…
-
Avoid protected member in final classes
The difference between private and protected visibility is that child classes can see and use protected members, but they cannot see private ones. Since…
-
Avoid loop counter modification
Loop counters shall not be modified in the body of the loop. However other loop control variables representing logical values may be modified in…
-
The code contains too many jump instructions that derive the control flow out of a finally structure
Using return, break, throw, and continue from a finally block overwrites similar statements from the suspended try and catch blocks.
-
Avoid variable assignments in conditional expressions
This pattern verifies the presence of variable assignments in conditional (IF) expressions. It is generally not recommended to use the assignment operator in this…
-
Avoid unconditional jump statement
Having an unconditional break, return or throw in a loop renders it useless; the loop will only execute once and the loop structure itself…
-
The code contains too many throws to system exceptions
The code contains too many thows to system exceptions (java.lang.Error, java.lang.RuntimeException). Application should have their own error exception classes. Throwing generic exception force callers…
-
A Program, User-Exit or Include contains too many Open SQL queries that access SAP standard tables in modification
SAP standard tables are part of the SAP software and they must not be modified by custom components. These can be affected by the…
-
The code contains too many SQL instructions with a missing where clause, or using “order by”, or using “not” operator or “is null” check in a where clause
For reliability and performance purposes, avoid using too many SQL instructions with a missing WHERE clause. Also, using “ORDER BY”, “NOT LIKE” or “IS…
-
The code contains too many unchecked returns of functions calls
Missing return code checks after an Open SQL statement can result in unpredictable behavior and untraceable execution errors. This is why it is extremely…