eBPF-based security platform
ci: let a string literal run past the line limit in the style check
Daniel Borkmann19f44adbfb78
diff --git a/.github/scripts/check-style.sh b/.github/scripts/check-style.shindex 4120a369..95f8d00e 100755--- a/.github/scripts/check-style.sh+++ b/.github/scripts/check-style.sh@@ -59,6 +59,11 @@ ignored_types() {# WarningsCOMMIT_LOG_LONG_LINECOMMIT_MESSAGE+ # A string literal is not broken across lines, as the kernel's+ # coding style says of user-visible strings, so that it can be+ # grepped for; the pin and xattr names in util/paths.h run past+ # the limit for that reason.+ LONG_LINE_STRINGCONSTANT_CONVERSIONCONST_STRUCTEMAIL_SUBJECTdiff --git a/testing/t0043-check-style.sh b/testing/t0043-check-style.shindex 58f7a1f3..12748cfa 100644--- a/testing/t0043-check-style.sh+++ b/testing/t0043-check-style.sh@@ -98,6 +98,16 @@ Why the change is made." &&grep -q "^WARNING:LONG_LINE: line length of 9[0-9] exceeds 80 columns" "$W/out"'+test_expect_success 'a string literal running past 80 columns is not reported' '+ put names.h "/* SPDX-License-Identifier: BSD-2-Clause */" "" \+ "#define NAMES_LONG_PIN_PATH NAMES_DIR \"/a_pin_name_that_runs_past_the_limit_link\"" &&+ commit "a: add a long name++Why the change is made." &&+ check &&+ ! grep -q "LONG_LINE" "$W/out"+'+test_expect_success 'a commit touching no C source still has its message checked' 'put run.sh "#!/bin/sh" "$(printf "%0150d" 0)" &&commit "a: a shell file