diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..bc0e741 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,5 @@ +[codespell] +skip = .git,*.pdf,*.svg,.codespellrc +check-hidden = true +# ignore-regex = +ignore-words-list = nd diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..7373aff --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,22 @@ +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/DAV-requirements.md b/DAV-requirements.md index b8b4594..5d3a799 100644 --- a/DAV-requirements.md +++ b/DAV-requirements.md @@ -49,4 +49,4 @@ partial put. There seems to be some movement in this space. RFC9110 mentions [partial PUT using the `Content-Range` header](https://www.rfc-editor.org/rfc/rfc9110.html#name-partial-put), even though that is very unsafe - on servers not supporting it you'll get instant data corruption. -Seperately, there's a [Byte Range PATCH](https://datatracker.ietf.org/doc/draft-wright-http-patch-byterange/) draft RFC. This one looks better, let's hope it goes forward. +Separately, there's a [Byte Range PATCH](https://datatracker.ietf.org/doc/draft-wright-http-patch-byterange/) draft RFC. This one looks better, let's hope it goes forward. diff --git a/SABREDAV-partialupdate.md b/SABREDAV-partialupdate.md index 7756043..3f5da5e 100644 --- a/SABREDAV-partialupdate.md +++ b/SABREDAV-partialupdate.md @@ -8,7 +8,7 @@ The `Sabre\\DAV\\PartialUpdate\\Plugin` from the Sabre DAV library provides support for the HTTP PATCH method [RFC5789](http://tools.ietf.org/html/rfc5789). This allows you to update just a portion of a file, or append to a file. -This document can be used as a spec for other implementors. There is some +This document can be used as a spec for other implementers. There is some DAV-specific stuff in this document, but only in relation to the OPTIONS request. diff --git a/webdav.go b/webdav.go index fdb0f72..2dba098 100644 --- a/webdav.go +++ b/webdav.go @@ -378,7 +378,7 @@ func (d *DavClient) Mount() (err error) { d.IsApache = true } - // Does this server supoort sabredav-partialupdate ? + // Does this server support sabredav-partialupdate ? if d.DavSupport["sabredav-partialupdate"] { d.IsSabre = true }