-
Notifications
You must be signed in to change notification settings - Fork 286
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
Add option to enable all lints in the command line #104
Comments
I'd prefer to not introduce new command line options and keep the interface minimalistic. What are your main concerns with using a |
One extra config file to keep around as opposed to an extra command-line option. This really comes down to preference and convenience. I understand your goal, feel free to close the issue if it doesn't follow it. |
Let's keep it open for now and collect opinions. If more folks would want to use |
The configuration file does not only contain the list of rules to apply but also some knobs that control Today those rules will panic if there is no configuration for them (for example try to use To resume, if the goal is to be able to run |
This might be outside of the scope of the issue, but it would nice if revive allowed enable/disable particular rule via command line argument. Since there is no one default name for the config file (i.e. As an example |
I'd like to say that after looking at the rules extensively, I finally understand the design choice for I must say I like the approach of a different I'd suggest, though, and maybe I should open another issue for this, to add a file with all of the rules listed in in this page so it is easier to copy-paste for those that want to have them all on a file for rapid testing and iteration. Right now I'm going through the rules one by one and adding them to my file and the ones I don't want I comment out. Also, it would be nice to have a standardized default path like @narqo mentioned. Maybe this should be yet another separate issue. |
I think maybe I don't understand still, but I can't even find a way to enable all checks from the config file. Is the only current way to say "run all checks" to explicitly list all of them in the config file? |
@akerl Yes. The only way to configure any of the lints is via config file. |
Let's keep the configurability as minimalistic as possible. Closing it for now. Feel free to comment for further discussion. |
Is your feature request related to a problem? Please describe.
Having to pass a
-config config.toml
without being able to simply-all
to get all of the lint rules.Describe the solution you'd like
Add a
-all
or something similar to the command line options so a TOML config file isn't needed.The text was updated successfully, but these errors were encountered: