lint-gomko

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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
go vet -vettool ~/bin/lint-gomko

All linters

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

Skip files/directories

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

Examples:

  • IGNORE="**/*_test.go" ignores all the test files
  • IGNORE="**/cmd/**" ignores everything under cmd directory
IGNORE="**/*_test.go" go vet -vettool ~/bin/lint-gomko-all ./...

NOTE: uses github.com/gobwas/glob with '/' separator.

Building and running from source

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

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