sonar-openedge
sonar-openedge copied to clipboard
Unused methods
Pretty sure i already created a ticket for this some time ago but i can't find it anywhere.
Anyway, i just spent 30 minutes refactoring a method, which, as is turns out, is used nowhere and could be removed. A rule to find unused methods would be great to find dead code.
Not sure if its that easy for procedures/functions but i care mostly about methods so i would be happy with that ;-)
It's tough, though, with public or package-* access level members. Especially if you develop libraries / frameworks. Might be good to (be able to) limit this to private/protected members.
The best would be to have a "Where used" functionality in the IDE ! But that's a good rule idea too. As Peter said, can be done for private methods. Doing that on public methods would require changes to the engine.
The best would be to have a "Where used" functionality in the IDE ! But that's a good rule idea too. As Peter said, can be done for private methods. Doing that on public methods would require changes to the engine.
....yeah, an ide from the 21 century would be nice 😬
Public methods would still be nice to have (with a setting). Maybe something for the future 😁