Skip to content

Commit

Permalink
SA9003: add Analyzer variable
Browse files Browse the repository at this point in the history
Closes: gh-1483 [via git-merge-pr]
  • Loading branch information
prestonvanloon authored and dominikh committed Dec 15, 2023
1 parent 0c75177 commit a367d57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions staticcheck/sa9003/sa9003.go
Expand Up @@ -26,6 +26,8 @@ var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{
},
})

var Analyzer = SCAnalyzer.Analyzer

func run(pass *analysis.Pass) (interface{}, error) {
for _, fn := range pass.ResultOf[buildir.Analyzer].(*buildir.IR).SrcFuncs {
if fn.Source() == nil {
Expand Down

0 comments on commit a367d57

Please sign in to comment.