ci: check for typos

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1170>
This commit is contained in:
Guillaume Desmottes 2023-04-10 08:36:14 +02:00
parent 403004a85e
commit 3eca8c60e3
2 changed files with 29 additions and 0 deletions

View file

@ -400,6 +400,14 @@ rustfmt:
- cargo fmt --version - cargo fmt --version
- cargo fmt -- --color=always --check - cargo fmt -- --color=always --check
typos:
extends: .img-stable
stage: "lint"
rules:
- when: 'always'
script:
- typos
gstwebrtc-api lint: gstwebrtc-api lint:
image: node:lts image: node:lts
stage: "lint" stage: "lint"

21
typos.toml Normal file
View file

@ -0,0 +1,21 @@
[default.extend-words]
ND = "ND" # net/ndi
encrypter = "encrypter"
numer = "numer" # numerator
paeth = "paeth"
seeked = "seeked"
# mux/mp4
fiel = "fiel"
trun = "trun"
[files]
extend-exclude = [
"*.mcc",
"*.ref",
"*.scc",
"net/webrtc/gstwebrtc-api/src/keysyms.js",
# third party code
"video/closedcaption/src/c/*",
"net/webrtc/gstwebrtc-api/third-party/*",
]