-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Built-in govet and golint can't parse quicktemplate output, standalone versions can #316
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
Comments
Upon further investigation, it seems that the golangci-lint's built-in govet and golint linters are confused by the
|
Preprocessed files like .qtpl.go quicktemplate Go files can have //line directives. They map to a source .qtpl file. This commit fixes linting of such files: 1. don't fail on AST cache loading 2. output Go filename not .qtpl or similar Also, here we update golint to the upstream version. Relates: #316, #466, #467, #468
Preprocessed files like .qtpl.go quicktemplate Go files can have //line directives. They map to a source .qtpl file. This commit fixes linting of such files: 1. don't fail on AST cache loading 2. output Go filename not .qtpl or similar Also, here we update golint to the upstream version. Relates: #316, #466, #467, #468
Preprocessed files like .qtpl.go quicktemplate Go files can have //line directives. They map to a source .qtpl file. This commit fixes linting of such files: 1. don't fail on AST cache loading 2. output Go filename not .qtpl or similar Also, here we update golint to the upstream version. Relates: #316, #466, #467, #468
Hi, thank you for the issue! The fix wasn't easy so it took a long time. |
@aaron42net Closing as it appears it was fixed by #504. Please comment back if this is not the case. |
When using a template code generator called quicktemplate (https://github.com/valyala/quicktemplate), golangci-lint's govet and golint linters can't parse the generated output, though
go vet
andgolint
work fine.I've created a tiny git repo that illustrates the interaction. See: https://github.com/aaron42net/glci-demo
Here's the result of running the steps in the README:
Let me know if you need more info. Thanks!
-- Aaron
Please include the following information:
golangci-lint --version
(or git commit if you don't use binary distribution)Git commit is current master:
ef7864383087163c1330f90342b6a5887e847c37
cat .golangci.yml
Running with no config:
golangci-lint -v run --no-config --disable-all -E golint -E govet
go version && go env
golangci-lint run -v
The text was updated successfully, but these errors were encountered: