Skip to content
Snippets Groups Projects
Commit 40cbf944 authored by Anders Lindh Olsson's avatar Anders Lindh Olsson :8ball:
Browse files

Include linters in pre-commit config

parent 9b59288d
No related branches found
No related tags found
1 merge request!85E3-670: Propose linters
Pipeline #111174 failed
......@@ -17,6 +17,7 @@ run pre-commit:
image: registry.esss.lu.se/ics-docker/pre-commit:latest
script:
- pre-commit run --all-files
allow_failure: true
shellcheck:
image: pipelinecomponents/shellcheck:latest
......
......@@ -21,3 +21,10 @@ repos:
rev: v13.0.0
hooks:
- id: clang-format
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: cppcheck
args: ["--enable=all", "--suppress=missingIncludeSystem", "--language=c++"]
- id: cpplint
args: ["--verbose", "0", "--filter", "-runtime/int,-build/include_subdir,-runtime/printf"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment