diff --git a/.codespellrc b/.codespellrc index 2d68648595..0b6bdcb31f 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,6 +1,6 @@ # See https://github.com/codespell-project/codespell#using-a-config-file [codespell] -skip = .git,*.pdf,*.svg,.codespellrc,go.sum,system_registries_v2_test.go,Makefile,build,buildah,buildah.spec,imgtype,copy,AUTHORS,bin,vendor,CHANGELOG.md,changelog.txt,seccomp.json,.cirrus.yml,*.xz,*.gz,*.tar,*.tgz,*ico,*.png,*.1,*.5,*.orig,*.rej,*.gpg -check-hidden = true -ignore-regex = \b(isT|BU|this/doesnt:match)\b -ignore-words-list = te,pathc +skip = ./vendor,./.git,./go.sum,*.gpg + +# NOTE words added to the list below need to be lowercased. +ignore-words-list = te,bu diff --git a/copy/encryption.go b/copy/encryption.go index 4259d355b1..b5a88a914b 100644 --- a/copy/encryption.go +++ b/copy/encryption.go @@ -48,7 +48,7 @@ func (ic *imageCopier) blobPipelineDecryptionStep(stream *sourceStream, srcInfo Annotations: stream.info.Annotations, } // DecryptLayer supposedly returns a digest of the decrypted stream. - // In pratice, that value is never set in the current implementation. + // In practice, that value is never set in the current implementation. // And we shouldn’t use it anyway, because it is not trusted: encryption can be made to a public key, // i.e. it doesn’t authenticate the origin of the metadata in any way. reader, _, err := ocicrypt.DecryptLayer(ic.c.options.OciDecryptConfig, stream.reader, desc, false) diff --git a/copy/multiple_test.go b/copy/multiple_test.go index e89d70c814..71cd62936b 100644 --- a/copy/multiple_test.go +++ b/copy/multiple_test.go @@ -77,7 +77,7 @@ func TestPrepareCopyInstancesforInstanceCopyClone(t *testing.T) { // * Still copy gzip variants if they exist in the original // * Not create new Zstd variants if they exist in the original. - // We crated a list of three instances `sourceInstances` and since in oci1.index.zstd-selection.json + // We created a list of three instances `sourceInstances` and since in oci1.index.zstd-selection.json // amd64 already has a zstd instance i.e sourceInstance[1] so it should not create replication for // `sourceInstance[0]` and `sourceInstance[1]` but should do it for `sourceInstance[2]` for `arm64` // and still copy `sourceInstance[2]`. diff --git a/copy/progress_bars.go b/copy/progress_bars.go index 053650b8d3..08128ce8d8 100644 --- a/copy/progress_bars.go +++ b/copy/progress_bars.go @@ -121,7 +121,7 @@ func (c *copier) printCopyInfo(kind string, info types.BlobInfo) { } } -// mark100PercentComplete marks the progres bars as 100% complete; +// mark100PercentComplete marks the progress bars as 100% complete; // it may do so by possibly advancing the current state if it is below the known total. func (bar *progressBar) mark100PercentComplete() { if bar.originalSize > 0 { diff --git a/copy/sign_test.go b/copy/sign_test.go index 49f3fce5f4..1f4a9349fa 100644 --- a/copy/sign_test.go +++ b/copy/sign_test.go @@ -116,7 +116,7 @@ func TestCreateSignatures(t *testing.T) { successfullySignedIdentity: "docker.io/library/busybox:latest", }, { - name: "docker:// with overidden identity", + name: "docker:// with overridden identity", dest: dockerDest, identity: "myregistry.io/myrepo:mytag", successfullySignedIdentity: "myregistry.io/myrepo:mytag",