| Project: | Prolint Issue Tracker |
| Component: | Rules |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Consider this example code:
METHOD PUBLIC OVERRIDE VOID CreateThis ():
SUPER:CreateThis().
/* add some custom stuff to 'this' */
END METHOD.
METHOD PUBLIC OVERRIDE VOID DeleteThis ():
SUPER:DeleteThis().
/* remove the custom stuff from 'this' */
END METHOD.
As you can see, SUPER:DeleteThis() is now the first statement in the DeleteThis method but I believe it makes more sense, generally, when it is the last statement.
I have no idea how to automate such a code review though.