Skip to content

Unique list#33

Open
dhruvsomani wants to merge 1 commit intomyint:masterfrom
dhruvsomani:UniqueList
Open

Unique list#33
dhruvsomani wants to merge 1 commit intomyint:masterfrom
dhruvsomani:UniqueList

Conversation

@dhruvsomani
Copy link
Contributor

@dhruvsomani dhruvsomani commented Oct 29, 2018

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 #24

Copy link
Owner

@myint myint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

  • Similar to my comment in #31, add a test case to test.cram.

@dhruvsomani dhruvsomani force-pushed the UniqueList branch 2 times, most recently from c04a1f0 to db0f8dd Compare November 11, 2018 13:50
@dhruvsomani
Copy link
Contributor Author

@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.

Copy link
Owner

@myint myint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more requested after I tested this with make check.

@dhruvsomani dhruvsomani force-pushed the UniqueList branch 3 times, most recently from 1d74ecd to 97fb973 Compare November 12, 2018 10:42
Added the `--unique-list` 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 the corresponding line
numbers where the misspelling occurs.

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

Closes myint#24
@dhruvsomani
Copy link
Contributor Author

@myint Done. 😄

@myint
Copy link
Owner

myint commented Nov 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants