Skip to content

Commit

Permalink
Detect more cases of tabs mixed with spaces
Browse files Browse the repository at this point in the history
Thankfully hasn't happened yet
  • Loading branch information
hugomg committed Jun 13, 2023
1 parent 20d4fa7 commit cd71262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-lint
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ do
error "File $file has a line that ends in whitespace"
fi

if grep --line-number "^$tab" "$file"; then
if grep --line-number "^$space*$tab" "$file"; then
# Standardize on spaces because mixing tabs and spaces is endless pain.
error "File $file has tab-based indentation"
fi
Expand Down

0 comments on commit cd71262

Please sign in to comment.