summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/jansson-e23f558/scripts/clang-format-check
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:44 +0000
commit836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch)
tree1604da8f482d02effa033c94a84be42bc0c848c3 /fluent-bit/lib/jansson-e23f558/scripts/clang-format-check
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz
netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/lib/jansson-e23f558/scripts/clang-format-check')
-rwxr-xr-xfluent-bit/lib/jansson-e23f558/scripts/clang-format-check27
1 files changed, 0 insertions, 27 deletions
diff --git a/fluent-bit/lib/jansson-e23f558/scripts/clang-format-check b/fluent-bit/lib/jansson-e23f558/scripts/clang-format-check
deleted file mode 100755
index 983e55d9..00000000
--- a/fluent-bit/lib/jansson-e23f558/scripts/clang-format-check
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-CLANG_FORMAT=${CLANG_FORMAT:-clang-format}
-CLANG_FORMAT_VERSION=${CLANG_FORMAT_VERSION:-}
-
-if ! type $CLANG_FORMAT >/dev/null || \
- ! $CLANG_FORMAT --version | grep -q "version ${CLANG_FORMAT_VERSION}"; then
- # If running tests, mark this test as skipped.
- exit 77
-fi
-
-errors=0
-paths=$(git ls-files | grep '\.[ch]$')
-for path in $paths; do
- in=$(cat $path)
- out=$($CLANG_FORMAT $path)
-
- if [ "$in" != "$out" ]; then
- diff -u -L $path -L "$path.formatted" $path - <<<$out
- errors=1
- fi
-done
-
-if [ $errors -ne 0 ]; then
- echo "Formatting errors detected, run ./scripts/clang-format to fix!"
- exit 1
-fi