lint-gomko

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 0 Imported by: 0

README

lint-gomko

opinionated golang linters

Linters

  • pkg/linters/appendr - append statements usage linter
  • pkg/linters/elser - else statements usage linter
  • pkg/linters/readall - ioutil.ReadAll usage linter

ioutil.ReadAll linter only

go get -u github.com/mkorenkov/lint-gomko/cmd/lint-gomko
lint-gomko ./testdata/*

All linters

go get -u github.com/mkorenkov/lint-gomko/cmd/lint-gomko-all
go vet -vettool ~/bin/lint-gomko-all ./testdata/*

Skip file patterns

Set IGNORE environment variable to comma-separated glob file patterns.

IGNORE="*.twirp.go,*_test.go" go vet -vettool ~/bin/lint-gomko-all ./testdata/*

Running from source instructions

go build -o ~/bin/lint-gomko-all cmd/lint-gomko-all/main.go
go vet -vettool ~/bin/lint-gomko-all ./testdata/*

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL