-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
allow for skipping file names by patterns #30
Comments
@srenatus thank you for the suggestion! |
Ah! Thanks for the pointer -- indeed, the checks catch our protobuf files (
In this case, the generator is https://github.com/lyft/protoc-gen-validate. Likewise, files generated using https://github.com/twitter/go-bindata don't seem to be excluded -- they start with
|
As observed in golangci#30, there's tools out there that don't comply 100% with the referenced golang convention. With this change, golangci-lint will skip some more of those generated files. Signed-off-by: Stephan Renatus <[email protected]>
Skipping files (not dirs) for all linters looks difficult now because of packages loading scheme: linters work with packages, not files. To properly exclude files we should make packages in another way. |
It would be nice to be able to skip at least dirs/packages for now. |
#30: support --skip-files and --skip-dirs options: they skip files an…
try in master, please. Options |
I'm not sure if this is again only something I haven't found in the docs, but -- it would be very nice if
golangci-lint
could be configured to ignore files that have been generated. One way we've used this with GML was to configure an "exclude pattern" of*.pb.*.go
, likeAny way to achieve that, short of (pre-)filtering the list of files to check?
The text was updated successfully, but these errors were encountered: