spelling: improve camel case handling, disallow run-together words (#8696)
Modifies the pedantic spell checker to better handle camel-case words. Each part the word is now treated as a separate error in both the check and fix modes. Disables run-together mode for aspell, which allowed typos such as "mananger" (man + anger). Fixes the resulting spelling errors. Miscellaneous other fixes: * Provides an option to replace a word without adding the word to the dictionary (in case aspell's suggestions do not contain the correct replacement). * Fixes a bug in the script when no suggestions are returned by aspell. * Checks the dictionary and added words for invalid characters that cause aspell errors at dictionary load time. * Sets the mark flag when in CI runs so that misspelled words are indicated. * Culls words from the dictionary that are no longer in the codebase, or are otherwise not needed. Risk Level: low (comments only) Testing: n/a Doc Changes: n/a Release Notes: n/a Fixes: #8481 Signed-off-by: Stephan Zuercher <zuercher@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ de70fe54cdba6b022b3971379afa535f402f2ffemaster-ci-test
parent
d049888d80
commit
0e936d58e2
12 changed files with 18 additions and 18 deletions
Loading…
Reference in new issue