Skip to content

Commit

Permalink
Also check whitespace in .py and .sh files
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Jan 20, 2025
1 parent 252b0c1 commit 58ab4aa
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 58ab4aa

Please sign in to comment.