MOVEDlint: Test the first and second field for spaces

both fields should not have spaces in their field, let's make
MOVEDlint check for it
This commit is contained in:
Baptiste Daroussin 2022-08-23 15:14:08 +02:00
parent 34ae74bbde
commit fb4e70bad0

View File

@ -84,6 +84,18 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
next
}
$1 ~ /[ \t]/ {
printf "%5d: '%s' contains spaces\n", NR, $1 | sort
error[NR] = 1
next
}
$2 ~ /[ \t]/ {
printf "%5d: '%s' contains spaces\n", NR, $2 | sort
error[NR] = 1
next
}
{
if ($1 in srcs) {
printf "%5d: %s has duplicate entries\n", NR, $1 | sort