checks icon indicating copy to clipboard operation
checks copied to clipboard

Write unused function check

Open jonsyu1 opened this issue 9 years ago • 2 comments

I believe golint or govet already catches unused variables, but we should check for unused functions as well.

jonsyu1 avatar Jan 13 '17 23:01 jonsyu1

I agree that this would be a valuable addition, but do you see this working with public functions or only private functions? If you see a use case for public functions as well, do you see it checking only the package in which the function exists or the entire project? Obviously external projects can't necessarily be checked, but this might give a sense of which functions don't need to be public.

14rcole avatar Oct 12 '17 16:10 14rcole

Only private functions, just like the go linter's unused variable check.

jonsyu1 avatar Oct 12 '17 17:10 jonsyu1