Skip to content

sendwithus/linters

Repository files navigation

Linters

Flake8

Dockerized flake8 linter.

docker run --rm \
    -v "$PWD":/usr/app \
    -w /usr/app \
    sendwithus/flake8 \
    flake8 --ignore=E501 --exclude=src/*_pb.py src tests

Gometalinter

Dockerized gometalinter.

docker run --rm \
  -v "$PWD":/go/src/github.com/sendwithus/service \
  -w /go/src/github.com/sendwithus/service \
  sendwithus/gometalinter \
    --fast \
    --deadline=120s \
    --vendor \
    --config=scripts/lint.json ./...

GopkgLinter

Ensures that you aren't using feature branches in your projects.

docker run --rm -i -v "$PWD":/app sendwithus/gopkglinter /app/Gopkg.toml

Goimportslinter

Ensure that goimports have been run. MUST BE MOUNTED INSIDE THE GOPATH IN THE CONTAINER

docker run \
  -v "$PWD":/go/src/github.com/sendwithus/project_name \
  -w /go/src/github.com/sendwithus/project_name \
  sendwithus/goimportslinter:latest

Golang

Buffet of golang linters and import verifiers.

docker run --rm \
    -v "$PWD":/go/src/github.com/org/project \
    -w /go/src/github.com/org/project \
    sendwithus/linter-golang:latest

Python 2.7

Enforces PEP8 style.

docker run --rm \
  -v "$PWD"/src:/usr/src \
  -w /usr/src \
  sendwithus/linter-python-2.7:latest