Skip to content

Commit

Permalink
MOVEDlint: Test the first and second field for spaces
Browse files Browse the repository at this point in the history
both fields should not have spaces in their field, let's make
MOVEDlint check for it
  • Loading branch information
bapt committed Aug 23, 2022
1 parent 34ae74b commit fb4e70b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tools/scripts/MOVEDlint.awk
Expand Up @@ -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
Expand Down

0 comments on commit fb4e70b

Please sign in to comment.