Add "Ignore Global" option to Unused Declaration Inspections

Issue #1501 resolved
Jurgis Salna created an issue

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)

  1. Jurgis Salna reporter

    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)…

  2. Scott Wells 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.

  3. Log in to comment