Skip to content

馃挕: Split behavior between case and accents from --ignore-case / --no-ignore-case#7668

Description

@phansys

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions