cspell icon indicating copy to clipboard operation
cspell copied to clipboard

💡: add flag to only report on findings with suggestions

Open CasperRademaker-AbOvo opened this issue 2 months ago • 1 comments

Problem

cspell . reports some findings with a suggested fix:

src/typos:2:1 - Unknown word (recieve) fix: (receive)

Others not:

src/components/Example/Example.vue:3:27 - Unknown word (luxon)

Solution

I would like to be able to have cspell only report on findings that have a suggested fix, so that we can focus only on low-hanging fruit typos. Something like --only-fixable which would only return (and fail on) the recieve finding and not the luxon finding

Alternatives

No response

Additional Context

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

CasperRademaker-AbOvo avatar Oct 06 '25 12:10 CasperRademaker-AbOvo

@CasperRademaker-AbOvo,

Does the --report typos option work for you? It is a new feature (about 4 months ago).

Use:

cspell lint --help

to get a list of the options.

--report <level> Set how unknown words are reported (choices: "all", "simple", "typos", "flagged")

Jason3S avatar Oct 22 '25 07:10 Jason3S