streetsidesoftware / cspell

A Spell Checker for Code!
https://cspell.org
MIT License
1.23k stars 92 forks source link

Possible to bypass string values? #26

Open dolanmiu opened 6 years ago

dolanmiu commented 6 years ago

Is it possible to bypass string variables for this spell checker?

currently this fails, but it shouldn't. I have to do an ignore every time, which is very annoying:

var URL = 'https://github.com/Jason3S/cspell/issues/26#issuecomment-383315831'

I want to spell check variable names, function names and all that etc,

I am not too fussed about the spelling of string variables.

BUT, I would like to spell check .spec.ts

So it should still find it('should fix spelin erros')

Edit: I have found this, which disables ALL stings:

https://github.com/Jason3S/cspell/blob/master/samples/comments_only/cpp_strings_and_comments.cspell.json

    "ignoreRegExpList": [
        "string"
     ]
Jason3S commented 6 years ago

I am working on making cspell grammar aware. Once that is in place, this should be possible.