Skip to content

Commit

Permalink
Also check whitespace in .py and .sh files (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel authored Jan 21, 2025
1 parent 39a1210 commit afdafa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/c++-code-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ jobs:
"Remove the trailing spaces at the end of the line.")
}
match($0, /\t+/) {
# Only check for tabs in C/C++ source files
if (FILENAME ~ /\.[ch](xx|pp)?$/) {
# Only check for tabs in C/C++ source files and Python/Shell scripts
if (FILENAME ~ /\.[ch](xx|pp)?$/ || FILENAME ~ /\.(py|sh)$/) {
error("Tab characters found",
"Indent code using spaces instead of tabs.")
}
Expand Down

0 comments on commit afdafa1

Please sign in to comment.