satisfy lint

This commit is contained in:
Jeremy Rans
2018-12-15 02:53:17 -06:00
parent f0f87c9ce8
commit ad7e9229be
3 changed files with 4 additions and 4 deletions

View File

@@ -36,8 +36,8 @@ type ChecksResult struct {
Issues int `json:"issues"`
}
// CheckDir executes all checks on the given directory
func CheckDir(dir string) (ChecksResult, error) {
// Run executes all checks on the given directory
func Run(dir string) (ChecksResult, error) {
filenames, skipped, err := GoFiles(dir)
if err != nil {
return ChecksResult{}, fmt.Errorf("could not get filenames: %v", err)

View File

@@ -15,7 +15,7 @@ var (
func main() {
flag.Parse()
result, err := check.CheckDir(*dir)
result, err := check.Run(*dir)
if err != nil {
log.Fatalf("Fatal error checking %s: %s", *dir, err.Error())
}

View File

@@ -94,7 +94,7 @@ func newChecksResp(repo string, forceRefresh bool) (checksResp, error) {
}
repo = repoRoot.Root
checkResult, err := check.CheckDir(dirName(repo))
checkResult, err := check.Run(dirName(repo))
if err != nil {
return checksResp{}, err
}