Sign inSign up

alvarofpp/linter

By alvarofpp

•Updated about 2 years ago

A docker image to ensure the code quality of my projects.

Image
0

621

alvarofpp/linter repository overview

⁠Docker image with linters

Github

In this Docker image, you will find some linters for your projects.

docker pull alvarofpp/linter:latest

Linters in this image and which command to invoke it:

LinterCommandConfig file
Commit (git)⁠lint-commit <target_branch>.commitlintrc
Dockerfile⁠lint-dockerfile.hadolint.yaml
Markdown⁠lint-markdown.markdownlintrc
Python⁠lint-python.ruff.toml
Shell script⁠lint-shell.shellcheckrc
YAML⁠lint-yaml.yamllint

You can create a .lint/ directory with your linters configs, exceptionally the .shellcheckrc file must be in the main directory.

⁠How to use

docker run --rm -v $(pwd):/app alvarofpp/linter " \
  lint-commit origin/main \
  && lint-markdown \
  && lint-shell \
  && lint-yaml"

⁠Manual test

Build the image:

docker build -t alvarofpp/linter:latest .

Run the command below to start using an image container for testing:

docker run -it --rm -v $(pwd):/app alvarofpp/linter /bin/bash

Tag summary

Content type

Image

Digest

sha256:55c6a2bd5…

Size

98 MB

Last updated

about 2 years ago

docker pull alvarofpp/linter