Sign inSign up

supinf/gometalinter

By supinf

Updated over 7 years ago

gometalinter images based on Alpine Linux.

Image
1

10K+

supinf/gometalinter repository overview

Go Meta Linter

https://github.com/alecthomas/gometalinter

・latest (golang/gometalinter/versions/2.0/Dockerfile)
・2.0 (golang/gometalinter/versions/2.0/Dockerfile)

Usage

Configure
$ cat << EOF > lint-config.json
{
  "Enable": [
    "megacheck",
    "ineffassign",
    "misspell",
    "nakedret",
    "gas",
    "golint",
    "goconst",
    "unused",
    "deadcode",
    "vet",
    "gosimple"
  ],
  "Vendor": true,
  "Deadline": "60s",
  "Aggregate": true
}
EOF
Test
$ docker run --rm \
    -v $(pwd):/go/src/github.com/your-name/project \
    -w /go/src/github.com/your-name/project \
    supinf/gometalinter:2.0 --config=lint-config.json ./...

Tag summary

Content type

Image

Digest

Size

177 MB

Last updated

over 7 years ago

docker pull supinf/gometalinter