:warning: this will update your current working directory :warning:
docker run --rm -v $PWD:/root/src -it gepetto/linters
You should first setup the configurations files from this repository by putting the setup.cfg and the .clang-format
files in a parent directory of your project.
Then you can go to your project, and try the following commands:
yapf -ri .
flake8 .
clang-format-6.0 -i $(find . -path ./cmake -prune -o -iregex '.*\.\(h\|c\|hh\|cc\|hpp\|cpp\|hxx\|cxx\)$' -print)
format:
image: gepetto/linters
before_script:
- test -f /builds/setup.cfg || ln -s /root/setup.cfg /builds
- test -f /builds/.clang-format || ln -s /root/.clang-format /builds
script:
- isort -c
- flake8 .
- check-clang-format.sh
Content type
Image
Digest
sha256:e5b2b3929…
Size
99 MB
Last updated
over 1 year ago
docker pull gepetto/linters