scspell icon indicating copy to clipboard operation
scspell copied to clipboard

Unique list

Open dhruvsomani opened this issue 7 years ago • 3 comments

Added the --list-unique command line argument which enables to only see the unique errors in a report only manner. Thus, recurring not matching tokens will be lumped together as one. Also, shows a list of line numbers beside the token where the token was used.

The list_unique parameter was added to spell_check(), spell_check_file and spell_check_token() functions.

Closes https://github.com/myint/scspell/issues/24

dhruvsomani avatar Oct 29 '18 09:10 dhruvsomani

@myint @jayvdb I changed the output file to sys.stderr and also reverted the wrong changes I had made for the backslash issue. So, I think this can be merged now.

dhruvsomani avatar Nov 11 '18 13:11 dhruvsomani

@myint Done. 😄

dhruvsomani avatar Nov 12 '18 10:11 dhruvsomani

The indentation is still a bit off. But I"m going approve as I suspect this Google thing will be already over the next time I get a chance to log in.

$ pycodestyle scspell/__init__.py
scspell/__init__.py:495:29: E127 continuation line over-indented for visual indent
scspell/__init__.py:515:25: E127 continuation line over-indented for visual indent
scspell/__init__.py:594:37: E127 continuation line over-indented for visual indent

myint avatar Nov 18 '18 00:11 myint