summaryrefslogtreecommitdiffstats
path: root/docs/code-quality/lint/linters/rejected-words.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/code-quality/lint/linters/rejected-words.rst')
-rw-r--r--docs/code-quality/lint/linters/rejected-words.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/code-quality/lint/linters/rejected-words.rst b/docs/code-quality/lint/linters/rejected-words.rst
new file mode 100644
index 0000000000..c952b420da
--- /dev/null
+++ b/docs/code-quality/lint/linters/rejected-words.rst
@@ -0,0 +1,27 @@
+Rejected words
+==============
+
+Reject some words we don't want to use in the code base for various reasons.
+
+Run Locally
+-----------
+
+The mozlint integration of codespell can be run using mach:
+
+.. parsed-literal::
+
+ $ mach lint --linter rejected-words <file paths>
+
+
+Configuration
+-------------
+
+This linter is enabled on the whole code base. Issues existing in the code base are listed in the exclude list in
+ the `rejected-words.yml <https://searchfox.org/mozilla-central/source/tools/lint/rejected-words.yml>`_ file.
+
+New words can be added in the `payload` section.
+
+Sources
+-------
+
+* `Configuration (YAML) <https://searchfox.org/mozilla-central/source/tools/lint/rejected-words.yml>`_