mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
satisfy lint
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user