From 4917af9b3585d9b29978206f9a40f922a497ea0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 28 Apr 2025 10:10:06 +0300 Subject: [PATCH] ci: Remove typos CI job It's not really scalable in a repository with lots of different pieces of code. What is an intentional typo (`fiel`) in one directory might be an actual typo (`field`) elsewhere, and unfortunately this can't be configured in a useful way on a per-directory basis. Part-of: --- .gitlab-ci.yml | 12 ------------ ci/install-rust.sh | 1 - typos.toml | 35 ----------------------------------- 3 files changed, 48 deletions(-) delete mode 100644 typos.toml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a42df530..7141eb522 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -360,18 +360,6 @@ check commits: - job: 'build-stable' artifacts: false -typos: - extends: .img-stable - stage: "lint" - tags: [ 'placeholder-job' ] - variables: - GIT_SUBMODULE_STRATEGY: "none" - script: - - typos - needs: - - job: 'build-stable' - artifacts: false - clippy: extends: .img-stable stage: 'extras' diff --git a/ci/install-rust.sh b/ci/install-rust.sh index 7ac2a0694..87cca0a59 100755 --- a/ci/install-rust.sh +++ b/ci/install-rust.sh @@ -28,7 +28,6 @@ if [ "$RUST_IMAGE_FULL" = "1" ]; then cargo install --locked cargo-deny cargo install --locked cargo-outdated - cargo install --locked typos-cli --version "1.19.0" # Coverage tools rustup component add llvm-tools-preview diff --git a/typos.toml b/typos.toml deleted file mode 100644 index 68755cbc4..000000000 --- a/typos.toml +++ /dev/null @@ -1,35 +0,0 @@ -[default.extend-words] -gir = "gir" -numer = "numer" # numerator -inout = "inout" -seeked = "seeked" -BA = "BA" # sdp_message.rs -UE = "UE" # rtsp-server-record.rs -subtiles = "subtiles" - -[default] -extend-ignore-identifiers-re = [ - "GST_MTS_TABLE_ID_14496_OBJET_DESCRIPTOR", - # gst_rtsp_media_factory_is_stop_on_disonnect - ".*is_stop_on_disonnect", - "ser_de", # gstreamer/CHANGELOG.md - # FFMpeg prefixes - "anc", "Anc" -] - -[files] -extend-exclude = [ - # don't check dot and gir files - "*.gir", - "*.dot", - # don't check submodules - "gir/*", - "gir-files/*", - "gst-gir-files/*", - # versions.txt are generated and contain git hash objects - "versions.txt", - # can't fix typos in generated code as the typo is likely in the C API - "*/src/auto/*.rs", - "*/sys/src/lib.rs", - "*/sys/tests/*", -]