Documentation
¶
Overview ¶
Package checker provides functions to run analyzers and linters as Go tests.
package main import ( "testing" "github.com/kisielk/errcheck/errcheck" "lesiw.io/checker" ) func TestCheck(t *testing.T) { checker.Run(t, errcheck.Analyzer) // Run errcheck by itself. checker.Lint(t, "2.2.1") // Run golangci-lint v2.2.1. }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lint ¶ added in v0.2.0
Lint runs golangci-lint on the current package.
Version should be, e.g. "1.2.3" and not contain a "v".
func NewAnalyzer ¶ added in v0.4.0
NewAnalyzer creates a new analyzer that runs multiple analyzers and filters diagnostics based on //ignore directives.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.