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:
parent
34ae74bbde
commit
fb4e70bad0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user