dockerized clang-format error detection tool

This commit is contained in:
Bartosz Podrygajlo
2024-09-17 13:52:01 +02:00
parent 469d58f989
commit 771d11a148
4 changed files with 48 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
services:
clang-formatter:
image: clang-formatter
build:
dockerfile_inline: |
FROM ubuntu:22.04
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y git clang-format
volumes:
- ../../:/code/
command:
bash -c "git config --global --add safe.directory /code && cd /code/ && \
git config --global clangFormat.style file && \
./tools/formatting/detect_clang_format_errors.sh"