Code Review Tool

gmdurga

New Member
Hi,

Can anyone give me an idea whether is there any tools available to do the progress code review and to find out if any parameter (order) passed incorrectly to a procedure procedure in the calling palce.

Example:

Procedure ipsample:
DEFINE INPUT PARAMETER ch1 AS CHAR NO-UNDO.
DEFINE INPUT PARAMETER in1 AS INT NO-UNDO.
/**/
End Procedure.

But the procedure calls by passing the parameter in the reverse order RUN ipsample(INT,CHAR).

Thanks in advance.
 
The prominent code quality tool for ABL is ProLint http://www.oehive.org/prolint

However, it will not address the issue you ask about since it analyzes one compile unit at a time. I and some others over on OE Hive have been talking about building a sort of Super-XREF database, similar in concept to the many databases people have built from COMPILE XREF output, but using the full power of Proparse and ProRefactor to provide a much richer source of information. We could certainly do signature testing in that context.
 
It's also easy enough to parse a procedure's parameters out of .R files ... easier than parsing source, I think (no need to deal with comments, includes, preprocessor, etc.) I'm not sure about parsing out the details of the RUN statement, though... I've been meaning to look into that.
 
Back
Top