Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/demo-reviewdog-shellcheck.sh
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [shellcheck] reported by reviewdog 🐶
Expected end of $(..) expression. Fix any mentioned problems and try again. SC1072

https://github.com/iav/armbian/blob/1927a9b2f86b434698948281d92c28c73b963810/.github/demo-reviewdog-shellcheck.sh#L22

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# Demo file for reviewdog/action-shellcheck PR-review test.
# Intentionally broken — do not source or execute.
#
# Mix of severities so the level=error / fail_level=error gate can be
# observed: only the SC1xxx parser error below should turn into a PR
# review-comment when the new maintenance-lint-scripts-reviewdog.yml
# workflow runs.

# SC2086 — unquoted variable expansion (info)
arg=$1
echo $arg

# SC2034 — assigned but never used (warning)
unused="dead"

# SC2046 — quote $() to prevent word splitting (warning)
ls $(echo /tmp)

# SC1073 — parser error: unmatched $( (error)
broken=$(echo hello
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [shellcheck] reported by reviewdog 🐶
The mentioned syntax error was in this variable assignment. SC1009

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [shellcheck] reported by reviewdog 🐶
Couldn't parse this command expansion. Fix to allow more checks. SC1073

Loading