summaryrefslogtreecommitdiffstats
path: root/comm/tools/lint/codespell.yml
diff options
context:
space:
mode:
Diffstat (limited to 'comm/tools/lint/codespell.yml')
-rw-r--r--comm/tools/lint/codespell.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/comm/tools/lint/codespell.yml b/comm/tools/lint/codespell.yml
new file mode 100644
index 0000000000..08b68aac81
--- /dev/null
+++ b/comm/tools/lint/codespell.yml
@@ -0,0 +1,47 @@
+---
+codespell:
+ description: Check code for common misspellings
+ include:
+ - comm/calendar/locales/en-US/
+ - comm/chat/locales/en-US/
+ - comm/mail/branding/
+ - comm/mail/components/telemetry/
+ - comm/mail/locales/en-US/
+ - comm/mailnews/extensions/fts3/
+ - comm/python/
+ - comm/taskcluster/docs/
+ - comm/third_party/
+ - comm/README.md
+ exclude:
+ # Timezones have oddly spelled words that tend to confuse codespell
+ - comm/calendar/locales/en-US/chrome/calendar/timezones.properties
+ - comm/mailnews/extensions/fts3/fts3_porter.c
+ # List of extensions coming from:
+ # tools/lint/{flake8,eslint}.yml
+ # tools/mach_commands.py (clang-format)
+ # + documentation
+ # + localization files
+ extensions:
+ - js
+ - jsm
+ - jxs
+ - mjs
+ - xml
+ - html
+ - xhtml
+ - cpp
+ - c
+ - h
+ - configure
+ - py
+ - properties
+ - rst
+ - md
+ - ftl
+ support-files:
+ - 'tools/lint/spell/**'
+ - 'comm/tools/lint/spell/**'
+ type: external
+ setup: spell:setup
+ payload: commlint:lint_wrapper
+ wraps: spell:lint