Skip to content
New issue

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

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

Already on GitHub? # to your account

Mention the --explain flag whenever an error occurs #13

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

dosisod
Copy link
Owner

@dosisod dosisod commented Sep 28, 2022

This is now the default behaviour. It can be disabled via --quiet, or by setting quiet = true in the pyproject.toml file. Update README accordingly.

Example:

$ refurb test/data/err_100.py
test/data/err_100.py:5:9 [FURB100]: Use `Path(x).with_suffix(y)` instead of slice and concat
test/data/err_100.py:8:9 [FURB100]: Use `Path(x).with_suffix(y)` instead of slice and concat
test/data/err_100.py:13:5 [FURB123]: Use `x` instead of `str(x)`

Run `refurb --explain ERR` to further explain an error. Use `--quiet` to silence this message

With --quiet flag:

$ refurb test/data/err_100.py --quiet
test/data/err_100.py:5:9 [FURB100]: Use `Path(x).with_suffix(y)` instead of slice and concat
test/data/err_100.py:8:9 [FURB100]: Use `Path(x).with_suffix(y)` instead of slice and concat
test/data/err_100.py:13:5 [FURB123]: Use `x` instead of `str(x)`

This is now the default behaviour. It can be disabled via `--quiet`, or by
setting `quiet = True` in the pyproject.toml file.
@dosisod dosisod self-assigned this Sep 28, 2022
@dosisod dosisod merged commit 8e01604 into master Sep 28, 2022
@dosisod dosisod deleted the mention-explain branch September 28, 2022 22:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant