From 3eca8c60e378deaba72a5cf9186e8980076fc47c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 10 Apr 2023 08:36:14 +0200 Subject: [PATCH] ci: check for typos Part-of: --- .gitlab-ci.yml | 8 ++++++++ typos.toml | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 typos.toml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b85b9d9b..8f528d0b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -400,6 +400,14 @@ rustfmt: - cargo fmt --version - cargo fmt -- --color=always --check +typos: + extends: .img-stable + stage: "lint" + rules: + - when: 'always' + script: + - typos + gstwebrtc-api lint: image: node:lts stage: "lint" diff --git a/typos.toml b/typos.toml new file mode 100644 index 00000000..8631dd31 --- /dev/null +++ b/typos.toml @@ -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/*", +] \ No newline at end of file