From b3aed5c4e283d05e87b0f85e559227456be6b257 Mon Sep 17 00:00:00 2001 From: knative-automation Date: Wed, 23 Feb 2022 10:11:40 -0800 Subject: [PATCH] Update actions (#607) Signed-off-by: Knative Automation --- .github/workflows/knative-style.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/knative-style.yaml b/.github/workflows/knative-style.yaml index e34df932..545602ce 100644 --- a/.github/workflows/knative-style.yaml +++ b/.github/workflows/knative-style.yaml @@ -149,6 +149,7 @@ jobs: git check-attr --stdin linguist-vendored | grep -Ev ': (set|true)$' | cut -d: -f1 | git check-attr --stdin ignore-lint | grep -Ev ': (set|true)$' | cut -d: -f1 | grep -Ev '^(vendor/|third_party/|.git)' | + grep -v '\.svg$' | xargs misspell -i importas -error | reviewdog -efm="%f:%l:%c: %m" \ -name="github.com/client9/misspell" \ @@ -179,6 +180,7 @@ jobs: git check-attr --stdin linguist-vendored | grep -Ev ': (set|true)$' | cut -d: -f1 | git check-attr --stdin ignore-lint | grep -Ev ': (set|true)$' | cut -d: -f1 | grep -Ev '^(vendor/|third_party/|.git)' | + grep -v '\.svg$' | xargs grep -nE " +$" | reviewdog -efm="%f:%l:%m" \ -name="trailing whitespace" \ @@ -211,7 +213,8 @@ jobs: git check-attr --stdin linguist-vendored | grep -Ev ': (set|true)$' | cut -d: -f1 | git check-attr --stdin ignore-lint | grep -Ev ': (set|true)$' | cut -d: -f1 | grep -Ev '^(vendor/|third_party/|.git)' | - grep -v '\.ai$') + grep -v '\.ai$' | + grep -v '\.svg$') for x in $LINT_FILES; do # Based on https://stackoverflow.com/questions/34943632/linux-check-if-there-is-an-empty-line-at-the-end-of-a-file