sonar-go icon indicating copy to clipboard operation
sonar-go copied to clipboard

Rule S1144: Unused "private" methods should be removed

Open agigleux opened this issue 6 years ago • 2 comments

Implements RSPEC-1144

agigleux avatar Mar 09 '18 20:03 agigleux

without semantic information only "trivial" version of this rule can be implemented. We can adopt the rule for Go by considering functions which are not exported (i.e. have lowercase identifier)

saberduck avatar Apr 04 '18 16:04 saberduck

Even trivial version is not possible, because lowercase identifier are private for the package and package in Go can span across multiple files.

saberduck avatar Apr 10 '18 08:04 saberduck