-
-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Problem
Currently, these options handle two different cases from a single control point, as if they were synonyms.
I need to split the control point to handle these cases separately.
By instance, it is fine for me to admit the term trivy (lowercase variant of Trivy), as it can be used as a command name (trivy image --help), while I can't allow misspelled (nonexistent) terms, like minimo (accepted as valid because mínimo is the correct term from the Spanish dictionary).
Solution
Split case-insensitive behavior between --ignore-case / --no-ignore-case, leaving --ignore-case / --no-ignore-case to handle only the case-insensitive behavior and adding --ignore-accents / --no-ignore-accents to handle the accents omission if needed.
Note: I know that changing the behavior of an existing option is technically a BC break.
Alternatives
Create new options to avoid breaking BC with the behavior change, deprecating the exiting ones or its current behavior.
Additional Context
cspell trace --no-ignore-case "minimo" "trivy"Code of Conduct
- I agree to follow this project's Code of Conduct