Linters

Running Linters Locally

Run these before submitting a PR to catch issues early

Bash scripts

foo@bar:~$ find . -path ./.git -prune -o -name "*.sh" -exec shellcheck {} +
foo@bar:~$ shfmt -d .

Dockerfile

foo@bar:~$ hadolint src/Dockerfile

GitHub Actions

foo@bar:~$ actionlint

Markdown

foo@bar:~$ markdownlint-cli2
foo@bar:~$ cspell

Nix files

foo@bar:~$ nil diagnostics -- *.nix
foo@bar:~$ nixfmt --check -- *.nix

YAML

foo@bar:~$ yamllint .