-
Notifications
You must be signed in to change notification settings - Fork 101
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
Linter integration on PRs #384
Comments
We are using flake8 with some deep customization for Python. |
There was some past discussion about enabling |
@ajnavarro What does golangci seems to run a collection of the usual Go linters, I'm afraid it might be too verbose? https://github.com/golangci/golangci-lint |
@smola here is an example on gitbase: https://www.codefactor.io/repository/github/src-d/gitbase/issues/master |
we already have golangci on gitbase too and it is not verbose |
@src-d/applications don't use anything except for editors running |
About import orders, as mentioned in the issue desc, are we still keeping this old consensus?
If so, |
oh, sorry. I thought the question was only about code format. I (and most probably everybody else on the team) run go-lint which is enabled by default in VS Code. |
In general I support having some standard lint/check tools for PRs. But most of our code does not use them (or uses them inconsistently), and it can be really noisy to impose a standard after the fact. If we want to choose standard tools, I think we should also plan time to go through all our code and make it lint-compliant in PRs that do not contain other work. Otherwise it's really noisy everytime you touch some piece of code that hasn't been updated yet. (For Go, at least, this will not be too hard; it is more tedious for some other languages where the warnings may require more changes to fix) |
I would strongly prefer we use tools that can be run from the command line, and do not require integrating with some external website. So things like |
@creachadair what do you think about golangci-lint ? |
That looks pretty good. It has stable install points for use in CI (makes sense, given its heritage) and appears to support override configuration. It's pretty noisy in its default configuration, even on a project that is clean for |
@creachadair @smola |
To avoid comments on PRs related to formatting issues or imports order, we should use linters integrated on PRs. As a proposal we can use:
The text was updated successfully, but these errors were encountered: