Skip to content

Commit

Permalink
change indent
Browse files Browse the repository at this point in the history
  • Loading branch information
mongolyy committed Mar 11, 2024
1 parent e515400 commit 492db32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/biome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ install_biome() {
}

biome_check() {
# shellcheck disable=SC2086
"$(npm root)"/.bin/biome check --apply ${INPUT_BIOME_FLAGS} 2>&1 1>/dev/null |
sed 's/ *$//' |
awk 'BEGIN { RS=""; ORS="\n\n" } { if (index($0, "│") > 0) { print " ```\n" $0 "\n ```" } else { print $0 } }'
}

biome_ci() {
# shellcheck disable=SC2086
"$(npm root)"/.bin/biome ci --max-diagnostics=30 ${INPUT_BIOME_FLAGS} 2>&1 1>/dev/null |
sed 's/ *$//' |
awk 'BEGIN { RS=""; ORS="\n\n" } { if (index($0, "│") > 0) { print " ```\n" $0 "\n ```" } else { print $0 } }'
Expand Down
6 changes: 2 additions & 4 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ install_biome

echo '::group:: Running Biome with reviewdog 🐶 ...'
if [ "$INPUT_REPORTER" = "github-pr-review" ]; then
# shellcheck disable=SC2086
biome_check |
biome_check |
reviewdog \
-efm="%-G%f ci ━%#" \
-efm="%-G%f lint ━%#" \
Expand All @@ -32,8 +31,7 @@ if [ "$INPUT_REPORTER" = "github-pr-review" ]; then
-level="${INPUT_LEVEL}" \
${INPUT_REVIEWDOG_FLAGS}
else
# shellcheck disable=SC2086
biome_ci |
biome_ci |
reviewdog \
-efm="%-G%f ci ━%#" \
-efm="%-G%f lint ━%#" \
Expand Down

0 comments on commit 492db32

Please sign in to comment.