3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Check that C labels begin at start-of-line
8 cd -- "$
(dirname "$0")" > /dev/null 2>&1 || return
12 # shellcheck source=helper_functions.sh
13 .
"${LINTDIR}/helper_functions.sh"
16 grep "^src/.*\.[csS]$" | \
17 grep -v "^src/vendorcode/wuffs/" | \
18 xargs grep -Hn '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' | \
19 grep -v "[^a-z_]default:"