Configure golangci-lint for the whole repository

Add a relatively minimal set of linters that raise safe and 
mostly un-opinionated issues with the code. It runs 
automatically on CI via a github action.
This commit is contained in:
Martin Angers
2021-08-24 13:35:03 -04:00
committed by GitHub
parent a3714d2ed9
commit e61cb7e0db
43 changed files with 143 additions and 246 deletions
+1 -2
View File
@@ -30,9 +30,8 @@ func checkPermPath(path string, perm os.FileMode) error {
"Path %s already exists with mode %o instead of the expected %o", path, dir.Mode(), perm)
}
return nil
} else {
return &os.PathError{Op: "mkdir", Path: path, Err: syscall.ENOTDIR}
}
return &os.PathError{Op: "mkdir", Path: path, Err: syscall.ENOTDIR}
}
// Look for the parent directory in the path and then check the permissions in that