Open JoachimRees opened 2 weeks ago
Hi Joachim,
I completely agree: This is a bit more the domain of static code checks (i.e. the "check" ellipsis, not the "automate" ellipsis of ABAP Tools for Clean ABAP), but there is indeed an overlap – basically whenever ABAP cleaner generates a TODO comment – and since ABAP cleaner is probably run more frequently, why not help developers discover this immediately.
Meanwhile, ABAP code samples with ABAP cleaner TODO comments start to appear on the internet ;-)
Kind regards, Jörg-Michael
[ Up front: I'm not sure if ABAP Cleaner SHOULD help here, but I think it COULD, so I'm putting this up for consideration ]
If, in my code, I call a method of a locally defined object reference, BEFORE there was ever a WRITE/INSTANTION on the object reference, then this surely is a mistake (it will dump if executed).
Like un-used variables, ABAP Cleaner could point this out to me.
Example: