Skip to content

Commit

Permalink
Don't require spaces in makefiles (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel authored Jan 17, 2025
1 parent ca3d34f commit 252b0c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/c++-code-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,11 @@ jobs:
"Remove the trailing spaces at the end of the line.")
}
match($0, /\t+/) {
error("Tab characters found",
"Indent code using spaces instead of tabs.")
# Only check for tabs in C/C++ source files
if (FILENAME ~ /\.[ch](xx|pp)?$/) {
error("Tab characters found",
"Indent code using spaces instead of tabs.")
}
}
END {
exit exit_code
Expand Down

0 comments on commit 252b0c1

Please sign in to comment.