Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique list #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Unique list #33

wants to merge 1 commit into from

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

scspell/__init__.py Outdated Show resolved Hide resolved
scspell/__init__.py Outdated Show resolved Hide resolved
scspell/__init__.py Outdated Show resolved Hide resolved
scspell/__init__.py Outdated Show resolved Hide resolved
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!

scspell/__init__.py Outdated Show resolved Hide resolved
scspell/__init__.py Outdated Show resolved Hide resolved
@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.

scspell/__init__.py Outdated Show resolved Hide resolved
scspell/__init__.py Outdated Show resolved Hide resolved
scspell/__init__.py Outdated Show resolved Hide resolved
@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