From f17479c711a10c0bf2d838e33710829630a40966 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 28 Nov 2022 12:01:03 -0500 Subject: [PATCH] Run codespell on code Signed-off-by: Daniel J Walsh --- .github/actions/check_cirrus_cron/test.sh | 2 +- Makefile | 2 +- cmd/quadlet/main.go | 6 +++--- pkg/api/handlers/compat/images_build.go | 2 +- pkg/machine/config.go | 2 +- test/system/001-basic.bats | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/check_cirrus_cron/test.sh b/.github/actions/check_cirrus_cron/test.sh index 200aa11ec0..3e2991334e 100644 --- a/.github/actions/check_cirrus_cron/test.sh +++ b/.github/actions/check_cirrus_cron/test.sh @@ -2,7 +2,7 @@ # This script attempts to confirm functional github action scripts. # It expects to be called from Cirrus-CI, in a special execution -# enironment. Any use outside this environment will probably fail. +# environment. Any use outside this environment will probably fail. set -eo pipefail diff --git a/Makefile b/Makefile index eea9a563e8..389b288788 100644 --- a/Makefile +++ b/Makefile @@ -274,7 +274,7 @@ test/version/version: version/version.go .PHONY: codespell codespell: - codespell -S bin,vendor,.git,go.sum,.cirrus.yml,"RELEASE_NOTES.md,*.xz,*.gz,*.ps1,*.tar,swagger.yaml,*.tgz,bin2img,*ico,*.png,*.1,*.5,copyimg,*.orig,apidoc.go" -L te,clos,ans,pullrequest,uint,iff,od,seeked,splitted,marge,erro,hist,ether -w + codespell -S bin,vendor,.git,go.sum,.cirrus.yml,"RELEASE_NOTES.md,*.xz,*.gz,*.ps1,*.tar,swagger.yaml,*.tgz,bin2img,*ico,*.png,*.1,*.5,copyimg,*.orig,apidoc.go" -L te,clos,ans,pullrequest,uint,iff,od,seeked,splitted,marge,erro,hist,ether,specif -w .PHONY: validate validate: lint .gitvalidation validate.completions man-page-check swagger-check tests-included tests-expect-exit pr-removes-fixed-skips diff --git a/cmd/quadlet/main.go b/cmd/quadlet/main.go index 98f80467e5..18e46c07f5 100644 --- a/cmd/quadlet/main.go +++ b/cmd/quadlet/main.go @@ -231,7 +231,7 @@ func isImageID(imageName string) bool { } // However, podman also accepts image ids as pure hex strings, - // but only those of length 64 are unambigous image ids + // but only those of length 64 are unambiguous image ids if len(imageName) != 64 { return false } @@ -246,7 +246,7 @@ func isImageID(imageName string) bool { } func isUnambiguousName(imageName string) bool { - // Fully specified image ids are unambigous + // Fully specified image ids are unambiguous if isImageID(imageName) { return true } @@ -269,7 +269,7 @@ func isUnambiguousName(imageName string) bool { return false } -// warns if input is an ambigious name, i.e. a partial image id or a short +// warns if input is an ambiguous name, i.e. a partial image id or a short // name (i.e. is missing a registry) // // Examples: diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go index f2cbf657a2..2eacbbd9e2 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -402,7 +402,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { // Docker's newer clients popuates `cacheFrom` and `cacheTo` parameter // by default as empty array for all commands but buildah's design of // distributed cache expects this to be a repo not image hence parse - // only the first populated repo and igore if empty array. + // only the first populated repo and ignore if empty array. // Read more here: https://github.com/containers/podman/issues/15928 // TODO: Remove this when buildah's API is extended. compatIgnoreForcedCacheOptions := func(queryStr string) string { diff --git a/pkg/machine/config.go b/pkg/machine/config.go index 1cb02badb2..09c7dd73c4 100644 --- a/pkg/machine/config.go +++ b/pkg/machine/config.go @@ -246,7 +246,7 @@ func ConfDirPrefix() (string, error) { // will not delete certain catastrophic paths. func GuardedRemoveAll(path string) error { if path == "" || path == "/" { - return fmt.Errorf("refusing to recusively delete `%s`", path) + return fmt.Errorf("refusing to recursively delete `%s`", path) } return os.RemoveAll(path) } diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats index 4dba712a8f..1f84cfd3ea 100644 --- a/test/system/001-basic.bats +++ b/test/system/001-basic.bats @@ -233,7 +233,7 @@ See 'podman version --help'" "podman version --remote" } # Tests --noout for commands that do not enter the engine -@test "podman --noout properly supresses output" { +@test "podman --noout properly suppresses output" { run_podman --noout system connection ls is "$output" "" "output should be empty" }