cspell
cspell copied to clipboard
💡: add flag to only report on findings with suggestions
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,
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")