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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user