Add spellchecking for camelCase, PascalCase, and kebab-case

This commit is contained in:
Julian Stirling 2026-02-22 11:02:59 +00:00
parent 3f54084d14
commit 66b4a06e87
9 changed files with 40 additions and 8 deletions

29
.codespellrc2 Normal file
View file

@ -0,0 +1,29 @@
[codespell]
# A seperate RC file for detecting camelCase, PascalCase, and kebab-case errors
# A little more prone to fals positives than our standard regex, aslo fails to detect
# hyphenated words in the dictonary.
# Same as the main RC-file except for also excludes CHANGELOG as this is well covered
# by the normal RC file, and we get false positives from git hashes.
skip = node_modules,
*-lock.json,
*.git,
*.pyc,
__pycache__,
./build,
./dist,
./apidocs,
./openflexure,
./htmlcov,
./src/openflexure_microscope_server/static,
.venv,
*.egg-info,
report.xml,
CHANGELOG.md
# Ignores split by |
# Ignore hexadecimal numbers preceded by #
# Ignore FoV
ignore-regex = #[0-9A-Fa-f]{3,8}\b|\bFoV\b
regex = [A-Z]?[a-z\']+