x/tools/analysis/passes/httpresponse: check whether http.Response Body is closed. #31131
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
httpresponse really helps you to avoid a mistake when using net/http package.
But it only whether your function call of
Body.Close()
is in correct line or not.So I recently created own linter to check "whether you call
Body.Close()
or not" like the below case.https://github.com/timakin/bodyclose
After I released, I realized it might be better if an official
httpresponse
supported this workflow.So, can I contribute to add this feature?
The text was updated successfully, but these errors were encountered: