We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d4b693 commit d296b34Copy full SHA for d296b34
staticcheck/lint.go
@@ -2852,21 +2852,6 @@ func CheckInfiniteRecursion(pass *analysis.Pass) (interface{}, error) {
2852
return nil, nil
2853
}
2854
2855
-func objectName(obj types.Object) string {
2856
- if obj == nil {
2857
- return "<nil>"
2858
- }
2859
- var name string
2860
- if obj.Pkg() != nil && obj.Pkg().Scope().Lookup(obj.Name()) == obj {
2861
- s := obj.Pkg().Path()
2862
- if s != "" {
2863
- name += s + "."
2864
2865
2866
- name += obj.Name()
2867
- return name
2868
-}
2869
-
2870
func CheckLeakyTimeTick(pass *analysis.Pass) (interface{}, error) {
2871
for _, fn := range pass.ResultOf[buildir.Analyzer].(*buildir.IR).SrcFuncs {
2872
if code.IsMainLike(pass) || code.IsInTest(pass, fn) {
0 commit comments