-
Notifications
You must be signed in to change notification settings - Fork 16
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 style check #101
Comments
@zurk we should make it conditional to the definition of a variable, e.g. |
As @smola says. And in particular, enforcing simplifications ( So if we do want to make this a standard (and that does seem reasonable), we should let each maintainer do a cleanup on their own schedule before we flip the default to ON. |
I do not want to include this command to any existing command as a dependency, so only if you add So, maintainers have as many time as they want to start using this check. I agree with @creachadair that this check should be a standard so we should think carefully what is worth to include. What about gofmt -s -w .
goimports -w . I think it is worth to ask other golang guys what they think. |
Enforcing
Of these, I feel like (2) and (3) probably make sense for us, and maybe (4) as an opt-in. (Once you get your code clean of warnings, it actually catches a lot of useful things—but it can be noisy if you've never run it before). |
PML team start to use go features of CI.
But one for a style check is missing. Now we use this code to run it:
I propose to include this code to the main CI file because it is general for any Go project.
@smola WDYT?
The text was updated successfully, but these errors were encountered: