ruby-changes:65387
From: Nobuyoshi <ko1@a...>
Date: Thu, 4 Mar 2021 11:41:13 +0900 (JST)
Subject: [ruby-changes:65387] dea08758be (master): Check for trailing spaces
https://git.ruby-lang.org/ruby.git/commit/?id=dea08758be From dea08758be2ee02b5e2d85ee49aca85a9ea85201 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 4 Mar 2021 11:39:45 +0900 Subject: Check for trailing spaces --- .github/workflows/check_misc.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index 2f4bbc7..c116011 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -9,6 +9,9 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/check_misc.yml#L9 - 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 \ -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/