SpellChecker-Plugin icon indicating copy to clipboard operation
SpellChecker-Plugin copied to clipboard

Ability to check names of variables, functions,...

Open noonbluemoon opened this issue 9 years ago • 2 comments

Hey,

thanks a lot for your great spell checker! It works awesome for strings and comments. However, we often face the problem to also have typos / misspellings in the source code itself, i.e. variables, functions, classes, etc.. For instance, the typos in the variable m_defoultLeftMergin should be detected and changable to m_defaultLeftMargin by using the CamelCaseSplitCorrection. We would love to have another option to the settings to not only check strings and/or comments but also the actual source code?

How complicated would it be to realize this? Is there any chance that this feature will come soon?

Thanks a lot! Ines

noonbluemoon avatar Sep 19 '16 12:09 noonbluemoon

Hi,

I am glad the spellchecked is working for you.

Regarding your request, I do not see that this will be a big issue to do. The spell checker already extract variables and functions from the files during parsing to remove 'false positives' of comments that refers to variables with not-normal spelling. I will just have to see what the implications will be if one now try to also pass that through the spell checking logic.

The bad news is that since my development laptop stopped working it is very difficult to work on the spell checker. I have a setup to build and test, but development is a bit painful with this setup. It is something I will look into when I get my setup going again, but it might only be in about a month or so.

Regard,

CJCombrink avatar Sep 20 '16 05:09 CJCombrink

Hey,

thanks for your fast reply!

We would really appreciate to have this feature! We develop following the CleanCode principle (https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882). Thus, having a spellchecker for variable/function/... names is much more important to us than to spellcheck comments because we only comment where it is really necessary (apart from documentation).

So, we are looking forward to have your development setup working again :-).

Best regards, Ines

noonbluemoon avatar Sep 21 '16 07:09 noonbluemoon