#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only # DESCR: Check that C labels begin at start-of-line LINTDIR="$( cd -- "$(dirname "$0")" > /dev/null 2>&1 || return pwd -P )" # shellcheck source=helper_functions.sh . "${LINTDIR}/helper_functions.sh" ${FIND_FILES} | \ grep "^src/.*\.[csS]$" | \ xargs grep -Hn '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' | \ grep -v "[^a-z_]default:"