Skip to content

Commit

Permalink
Add pseudo source line for fix filltering
Browse files Browse the repository at this point in the history
  • Loading branch information
rokoucha committed Sep 19, 2023
1 parent 93fb51e commit 38df4c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ if [ "$INPUT_REPORTER" = "github-pr-review" ]; then
else

# shellcheck disable=SC2086
"$(npm root)"/.bin/prettier --check "${INPUT_PRETTIER_FLAGS}" 2>&1 | sed --regexp-extended 's/(\[warn\].*)$/\1 File is not properly formatted./' \
"$(npm root)"/.bin/prettier --check "${INPUT_PRETTIER_FLAGS}" 2>&1 | sed --regexp-extended 's/(\[warn\].*)$/\1 1 File is not properly formatted./' \

Check failure on line 43 in script.sh

View workflow job for this annotation

GitHub Actions / runner / shfmt

[shfmt] reported by reviewdog 🐶 Raw Output: script.sh:43:- "$(npm root)"/.bin/prettier --check "${INPUT_PRETTIER_FLAGS}" 2>&1 | sed --regexp-extended 's/(\[warn\].*)$/\1 1 File is not properly formatted./' \ script.sh:44:- | reviewdog \ script.sh:43:+ "$(npm root)"/.bin/prettier --check "${INPUT_PRETTIER_FLAGS}" 2>&1 | sed --regexp-extended 's/(\[warn\].*)$/\1 1 File is not properly formatted./' | script.sh:44:+ reviewdog \
| reviewdog \
-efm="%-G[warn] Code style issues found in the above file(s). Forgot to run Prettier%. File is not properly formatted." \
-efm="[%tarn] %f %m" \
-efm="[%tarn] %f %l %m" \
-efm="%E[%trror] %f: %m (%l:%c)" \
-efm="%C[error]%r" \
-efm="%Z[error]%r" \
Expand Down

0 comments on commit 38df4c7

Please sign in to comment.