-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Lint: Tackle Reported Lint Issues #2541
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
@mohammed90 @mholt
because, net/http.Transport has not supported |
Hello @mohammed90 @mholt, |
@Inconnu08 yes, you got those right. It seems like @u5surf is about to fix those as well, so maybe you two should coordinate. |
Oh sorry about that, @u5surf. I was only done with Also I just finished lint |
@Inconnu08 Oh, I’m sorry I should have said the work in progress in advance 😅 |
@u5surf it's okay. I'll take it from here. |
@Inconnu08 You got it. (I can only assign collaborators.) |
- reverseproxy - reverseproxy_test - upstream - upstream_test - body_test
- handler_test - redirect_test - requestid_test - rewrite_test - fileserver_test
- websocket - setup - collection - redirect_test - templates_test
@mohammed90 @mholt done with all |
It's easier to review the changes if you submit the pull request. This will also allow for the CI to run against the changes and report any failures or lint issues. |
run goimports against caddyserver#2551 - lexer_test - log_test - markdown
* Lint: fix some errcheck #2541 * Lint: fix passing structcheck #2541 * Lint: update fix structcheck #2541 * Lint: fix errcheck for basicauth, browse, fastcgi_test #2541 * Lint: fix errcheck for browse, fastcgi_test, fcgiclient, fcgiclient_test #2541 * Lint: fix errcheck for responsefilter_test, fcgilient_test #2541 * Lint: fix errcheck for header_test #2541 * Lint: update errcheck for fcgiclient_test #2541 * Lint: fix errcheck for server, header_test, fastcgi_test, https_test, recorder_test #2541 * Lint: fix errcheck for tplcontext, vhosttrie_test, internal_test, handler_test #2541 * Lint: fix errcheck for log_test, markdown mholt#2541 * Lint: fix errcheck for policy, body_test, proxy_test #2541 * Lint: fix errcheck for on multiple packages #2541 - reverseproxy - reverseproxy_test - upstream - upstream_test - body_test * Lint: fix errcheck in multiple packages mholt#2541 - handler_test - redirect_test - requestid_test - rewrite_test - fileserver_test * Lint: fix errcheck in multiple packages mholt#2541 - websocket - setup - collection - redirect_test - templates_test * Lint: fix errcheck in logger test #2541 run goimports against #2551 - lexer_test - log_test - markdown * Update caddyhttp/httpserver/logger_test.go Co-Authored-By: Inconnu08 <[email protected]> * Update log_test.go * Lint: fix scope in logger_test #2541 * remove redundant err check in logger_test #2541 * fix alias in logger_test #2541 * fix import for format #2541 * refactor variable names and error check #2541
@mholt @mohammed90 @Inconnu08 |
1. What would you like to have changed?
Clean, successful output of
golangci-lint run -E gofmt -E goimports -E misspell
against Caddy's repo with ~0 issues reported.2. Why is this feature a useful, necessary, and/or important addition to this project?
Code hygiene, correctness, and visibility of possible failures.
3. What alternatives are there, or what are you doing in the meantime to work around the lack of this feature?
🤷♂️
4. Please link to any relevant issues, pull requests, or other discussions.
#2540
5. How to start
golangci-lint
withgo get -v github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run -E gofmt -E goimports -E misspell
against the repoThe text was updated successfully, but these errors were encountered: