summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-04 11:39:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-04 11:40:43 +0900
commitdea08758be2ee02b5e2d85ee49aca85a9ea85201 (patch)
treea4a34f673bcc30d48ca17872443fc7d854743a81 /.github
parent1876782155037d489b0010823f5573a3464bceef (diff)
Check for trailing spaces
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check_misc.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml
index 2f4bbc7093..c116011d86 100644
--- a/.github/workflows/check_misc.yml
+++ b/.github/workflows/check_misc.yml
@@ -9,6 +9,9 @@ jobs:
- name: Check if C-sources are US-ASCII
run: |
! grep -r -n '[^ -~]' *.[chy] include internal win32/*.[ch]
+ - name: Check for trailing spaces
+ run: |
+ ! git grep -n '[ ]$' '*.rb' '*.[chy]'
- name: Check for header macros
run: |
! for header in ruby/*.h; do \