Skip to content

Repository files navigation

lesiw.io/checker Go Reference

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.
}

Readme created from Go doc with goreadme

About

Package checker provides functions to run analyzers and linters as Go tests.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages