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
Confusion around how --quiet and --fix should behave together #8675
Confusion around how --quiet and --fix should behave together #8675
Comments
Maybe we could add a third option to not report and not fix, something like |
Could that be achieved by using |
I agree with @not-an-aardvark, we probably wouldn't need a third option.
…On Jun 3, 2017 12:51 PM, "Teddy Katz" ***@***.***> wrote:
Could that be achieved by using --no-fix-warnings and --no-report-warnings
at the same time?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#8675 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARWepBmyrYJuhJJV69JMpHtA8Ox9PCKks5sAZ0lgaJpZM4NtCGA>
.
|
It could it would just alias those two options. I understand that adding too many options to the CLI would be a problem. I'm fine with just having the two options. |
In my first impression, it's surprisable that warnings still fix code with How about?
|
@mysticatea Yes, I think you're right, that behavior is unexpected (and was the root of the original issue). I like the direction you're going, but maybe we could bikeshed the name a little bit? How about this?
|
So are we proposing that the behavior of |
I would strongly prefer that `--quiet` not fix warnings, as it seems
unintuitive, unexpected, and dangerous. Maybe `--quiet` should be
deprecated (and removed in next major) in favor of a more explicit option
from one of the proposals here.
Or, if we think `--quiet` fixing warnings might be a bug (I certainly
consider it one), then it could be done as a semver-patch or semver-minor
change. I would be okay with that too. In that case, I think there is still
room for a new option for "report but don't fix warnings".
…On Jun 4, 2017 22:04, "Teddy Katz" ***@***.***> wrote:
So are we proposing that the behavior of --quiet should change to not fix
warnings? At the moment, warnings are fixed but are not reported with
--quiet.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#8675 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARWelI5w1rbKkftTYPZgHbzrNFLqC1Aks5sA3BXgaJpZM4NtCGA>
.
|
I wonder if it would be better to just change I'm not sure I like that the |
Just arranged.
|
I am 100% behind @mysticatea's latest proposal (just fix I'm not super attached to adding a "report but don't fix warnings" option in this PR. The thing I'm really championing here is making it so people can completely silence warnings (both report and fix), which |
Created #8699 for if we want to treat this as a bugfix. If we decide this should be treated as a feature or enhancement, I can close that PR. |
ping @gyandeeps since you disagreed with changing Another possibility would be to add options to |
If @gyandeeps still disagrees with changing Now that #8730 is merged, I'm willing to write a PR using that functionality to avoid autofixing warnings when |
See #8353 for background.
I think the best way to fix this is to allow users the option to go either way and to be very explicit about how the options work.
Here's one proposal along those lines:
--fix
not specified)With this proposal, our CLI options become more clear and more flexible with regard to whether warnings are reported/logged (
--quiet
/--no-report-warnings
) and whether warnings are fixed (--no-fix-warnings
).I'll champion.
The text was updated successfully, but these errors were encountered: