chore: add scripts for formatting via docker containers

This commit is contained in:
Jan 2024-12-22 22:25:25 +01:00
parent 2c8fcf1630
commit 673db0592f
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C
2 changed files with 12 additions and 0 deletions

6
scripts/check-format-docker.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# Go to repository root
cd "$(dirname "$0")/.." || exit 2
docker run --rm -v ".:/code" --user "$(id -u):$(id -g)" silkeh/clang:17 /code/scripts/check-format.sh

6
scripts/reformat-all-docker.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# Go to repository root
cd "$(dirname "$0")/.." || exit 2
docker run --rm -v ".:/code" --user "$(id -u):$(id -g)" silkeh/clang:17 /code/scripts/reformat-all.sh