Squashed 'libs/CommService/' content from commit 7ccc0fc
git-subtree-dir: libs/CommService git-subtree-split: 7ccc0fce88bbc5969df060058cf0fb57abe3bcf9
This commit is contained in:
14
libs/CLI11/scripts/check_style_docker.sh
Executable file
14
libs/CLI11/scripts/check_style_docker.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Also good but untagged: CLANG_FORMAT=unibeautify/clang-format
|
||||
# This might provide more control in the future: silkeh/clang:8 (etc)
|
||||
CLANG_FORMAT=saschpe/clang-format:5.0.1
|
||||
|
||||
set -evx
|
||||
|
||||
docker run --rm ${CLANG_FORMAT} --version
|
||||
docker run --rm --user $(id -u):$(id -g) -v "$(pwd)":/workdir -w /workdir ${CLANG_FORMAT} -style=file -sort-includes -i $(git ls-files -- '*.cpp' '*.hpp')
|
||||
|
||||
git diff --exit-code --color
|
||||
|
||||
set +evx
|
||||
Reference in New Issue
Block a user