summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml6
-rw-r--r--utils/ci/codespell/ignored_words.txt6
2 files changed, 9 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 71d2bff..0d31d9f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,10 +34,10 @@ codespell:
APT_INSTALL_PACKAGES: codespell
<<: *setup_apt
script:
- # Run codespell to check for spelling errors, using a config to ignore
- # warnings about binary files and to check file names as well.
+ # Run codespell to check for spelling errors, using a config with ignored words,
+ # ignoring warnings about binary files and to check file names as well.
# Also, exclude the vendor dir, which leads to false positives.
- - codespell -q 2 -f -S vendor
+ - codespell -q 2 -f -I utils/ci/codespell/ignored_words.txt -S vendor
stage: static
build:
diff --git a/utils/ci/codespell/ignored_words.txt b/utils/ci/codespell/ignored_words.txt
new file mode 100644
index 0000000..6597171
--- /dev/null
+++ b/utils/ci/codespell/ignored_words.txt
@@ -0,0 +1,6 @@
+# Words to be ignored by codespell.
+# Put one word per line.
+
+mitre
+# That's actually \nto, which codespell is not able to parse correctly
+nto