workgroups/vendor/github.com/gostaticanalysis/comment/passes/commentmap/commentmap.go
Marvin Preuss 1d4ae27878
All checks were successful
continuous-integration/drone/push Build is passing
ci: drone yaml with reusable anchors
2021-09-24 17:34:17 +02:00

21 lines
432 B
Go

package commentmap
import (
"reflect"
"github.com/gostaticanalysis/comment"
"golang.org/x/tools/go/analysis"
)
var Analyzer = &analysis.Analyzer{
Name: "commentmap",
Doc: "create comment map",
Run: run,
RunDespiteErrors: true,
ResultType: reflect.TypeOf(comment.Maps{}),
}
func run(pass *analysis.Pass) (interface{}, error) {
return comment.New(pass.Fset, pass.Files), nil
}