summaryrefslogtreecommitdiffstats
path: root/util/lint/lint-stable-026-line-endings
blob: d1b8ed3c90532f5098ee2bcf546c9db6850140ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env sh
#
# SPDX-License-Identifier: GPL-2.0-only

# DESCR: Verify that files don't contain windows line endings

LINTDIR="$(
  cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
  pwd -P
)"

# shellcheck source=helper_functions.sh
. "${LINTDIR}/helper_functions.sh"

EXCLUDE='^3rdparty/\|^payloads/external\|^.git\|build\|util/crossgcc/xgcc'

${GREP_FILES} -IlP "\r$" | grep -v "$EXCLUDE"