Skip to content

Search for flagWords based on regular expression #4140

Open
@gituserjava

Description

@gituserjava

It would be great if words in flagWords can be defined using a regular expression. In our use case, a word can exist in string and as a yaml field in a yaml file. We should raise error only if word is incorrect in yaml field. Example below.

company:
  - companyId:
      name: This is companyId of the company
      type: Manufacturing
  - route:
      name: This is distribution route
      type: Transport

cspell.yaml

flagWords:
- companyId: companyIdentifier

In the above yaml, I want error to be thrown only for yaml field name companyId on line 2 but not on line 3 because we are more concerned in spelling errors in yaml field and not the descriptions.

Please advise.

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