client9 / misspell

Correct commonly misspelled English words in source files
MIT License
1.35k stars 114 forks source link

False positive for string "... \nto ..." #170

Open nelljerram opened 4 years ago

nelljerram commented 4 years ago

The "nto" reports at https://goreportcard.com/report/github.com/projectcalico/felix#misspell are wrong. The string concerned is "Connectivity was incorrect:\n\nExpected\n %s\nto match\n %s" and the "nto" is actually a newline ("\n") followed by "to".

lmorg commented 3 years ago

I've also raised this: https://github.com/client9/misspell/issues/160

thediveo commented 3 years ago

Slowly nearing a year later and misspell still doesn't handle a typical use case correctly. With lots of such false positives it quickly looses its quality.