Add "Ignore Global" option to Unused Declaration Inspections
Issue #1501
resolved
Unused Declaration inspection is one of the most useful feature, however for us working with AppExchange this generates a lot of noise (global method/prop usage can’t be detected nor removed by us).
Adding this would help us with code cleanliness immensely!
Comments (3)
-
reporter -
repo owner I just submitted an "Ignore Global" option for the unused declaration inspection for inclusion in the next build.
I'm not sure I follow the other suggestion. If it's important to you, can you please log a separate enhancement request with a bit more detail, ideally an example.
-
repo owner - changed status to resolved
Delivered in 2.0.9.8.
- Log in to comment
Another useful thing would be searching for unused methods, not just props… Sometimes (especially in unit tests, although bad practice) you wanna call method without really using the return value (or, another bad practice - method mutates some passed on values)…