Documentation
¶
Overview ¶
Package bodyclose provides a linter that checks whether HTTP response bodies are properly closed. This linter can be used as a plugin with golangci-lint v2+ or as a standalone tool.
When used with golangci-lint v2+, configure your .golangci.yml like this:
linters-settings:
plugin:
enable: true
path: github.com/bfirestone/bodyclose
linters:
enable:
- bodyclose
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BodyClosePlugin ¶
type BodyClosePlugin struct{}
func (*BodyClosePlugin) BuildAnalyzers ¶
func (p *BodyClosePlugin) BuildAnalyzers() ([]*analysis.Analyzer, error)
BuildAnalyzers returns the bodyclose analyzer
func (*BodyClosePlugin) GetLoadMode ¶
func (p *BodyClosePlugin) GetLoadMode() string
GetLoadMode specifies what kind of AST loading is needed
Click to show internal directories.
Click to hide internal directories.