Alex Thottunkel
- Total activity 2325
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 1186
Articles
Recent activity by Alex Thottunkel Sort by recent activity-
Avoid to update parameters inside routine's bodies
Why you should care Reassigning parameter of function to a new value within the body of the method/closure, is a confusing and questionable practice. Use a temporary variable instead. How we detec...
-
Avoid to cover two dimensional ranges with nested for loop
Why you should care Nested for loops are not a good practice because for loops are using an increment to cover a range, and nested for loops are meant to cover a two dimensional range, leading to ...
-
Avoid Public finalize() methods
Why you should care A program should never call finalize explicitly, except to call super.finalize() inside an implementation of finalize(). In mobile code situations, the otherwise error prone pr...
-
Avoid confusing initialization for variables declared on the same line
Why you should care Destructuring assignment are a practical sugar syntax, but due to dynamic typing, ommitting the parentheses lead to a syntactically correct, but however functionnally incorrect...
-
Avoid unexpected closure inside parentheses call
Why you should care If a method is called and the last parameter is an inline closure then it can be declared outside of the method call parentheses, to comply with Groovy style programming. How w...
-
The code is managing too many files together
Why you should care The number of files declared in the FILE-CONTROL should not be excessive. How we detect CAST Highlight counts one occurrence each time the keyword SELECT is encountered in the...
-
The code contains too many unnecessary COMPUTE
Why you should care COMPUTE verb should be restricted to usage in combination with the ROUNDED clause or a function call or for complex computing expression. How we detect CAST Highlight counts o...
-
The code contains too many paragraph labels not followed by a dot
Why you should care As much as possible, developers should always terminate paragraph labels with a dot. How we detect CAST Highlight counts one occurrence each time a paragraph label in PROCEDUR...
-
The code contains too many not aligned END instructions
Why you should care For code readability purpose, developers should always align end keywords with the corresponding instruction. The END-xxx keywords should be aligned on the same column the inst...
-
The code contains too many long PIC declaration pattern
Why you should care While describing a PICTURE, once the length of a sequence exceeds 3 characters, use the factorized notation. Edition pictures (presence of Z) are not concerned. How we detect ...