Crie is an effective way to format and lint code for a variety of languages
- Alpine based image to reduce download size
- Extendable for more languages
- Batteries included but replaceable - default configuration (/imp) is separated from core library
Bundled all-together with Docker
git clone https://github.com/tyhal/crie /tmp/crie; sudo /tmp/crie/script/crie installLocal binary requiring all linters to be installed
# Ensure your path contains $GOPATH/bin
git clone https://github.com/tyhal/crie /tmp/crie; cd /tmp/crie
go install
# Additional tools used to lint
go get -u mvdan.cc/sh/cmd/shfmt golang.org/x/lint/golint
pip3 install -r requirements.txt
sudo npm install -g jsonlint2 remark-cli remark-preset-lint-recommended standard
sudo apt install cppcheck shellcheck clang-format
# TODO install help:
# hadolint crie chk crie fmt