6 "golang.org/x/tools/go/analysis"
7 "honnef.co/go/tools/analysis/lint"
10 func directives(pass *analysis.Pass) (interface{}, error) {
11 return lint.ParseDirectives(pass.Files, pass.Fset), nil
14 var Directives = &analysis.Analyzer{
16 Doc: "extracts linter directives",
18 RunDespiteErrors: true,
19 ResultType: reflect.TypeOf([]lint.Directive{}),