Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: USELESS-CODE-TRACKER-0.2
-
Fix Version/s: USELESS-CODE-TRACKER-1.0
-
Component/s: Useless Code Tracker
-
Labels:None
-
Number of attachments :
Description
This plugin reports the dead code (through PMD:UnusedPrivateMethod or through SQUID:UnusedPrivateMethod) or the potential dead code (through the PMD:UnusedProtectedMethod or through the SQUID:UnusedProtectedMethod).
I think it could be useful to report the potential dead code through a PMD or SQUID UnusedDefaultVisibilityMethod which is a subset of protected visibility.
For example, I sometimes change private methods visibility to default visibility, so I can test them inside a test class withon the same package without the need to use reflection.