Add script for checking thread locks in funcs that call MakeGitError #138

Merged
sqs merged 2 commits from check-MakeGitError-thread-lock into master 2014-12-08 17:47:41 -06:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 57095bafe7 - Show all commits

View File

@ -9,6 +9,8 @@ import (
"go/printer"
"go/token"
"log"
"os"
"path/filepath"
"strings"
)
@ -24,7 +26,7 @@ func main() {
log.Fatal(err)
}
pkgs, err := parser.ParseDir(fset, bpkg.Dir, nil, 0)
pkgs, err := parser.ParseDir(fset, bpkg.Dir, func(fi os.FileInfo) bool { return filepath.Ext(fi.Name()) == ".go" }, 0)
if err != nil {
log.Fatal(err)
}