forked from csutils/csdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/csdiff: cover the line content matching by a test
... taken from a real-world example encountered by differential-shellcheck: redhat-plumbers-in-action/differential-shellcheck#376 Related: csutils#98
- Loading branch information
Showing
7 changed files
with
1,126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/csdiff/diff-misc/24-shellcheck-line-content-add-z.err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Error: SHELLCHECK_WARNING: | ||
src/functions.sh:309:46: warning[SC2154]: GITHUB_REF is referenced but not assigned. | ||
# 307| is_debug && local verbose=--verbose | ||
# 308| | ||
# 309|-> echo '{"commit_oid":"'"${HEAD}"'","ref":"'"${GITHUB_REF//merge/head}"'","analysis_key":"differential-shellcheck","sarif":"'"$(gzip -c output.sarif | base64 -w0)"'","tool_names":["differential-shellcheck"]}' > payload.json | ||
# 310| | ||
# 311| local curl_args=( | ||
|
||
Error: SHELLCHECK_WARNING: | ||
src/functions.sh:309:129: info[SC2312]: Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore). | ||
# 307| is_debug && local verbose=--verbose | ||
# 308| | ||
# 309|-> echo '{"commit_oid":"'"${HEAD}"'","ref":"'"${GITHUB_REF//merge/head}"'","analysis_key":"differential-shellcheck","sarif":"'"$(gzip -c output.sarif | base64 -w0)"'","tool_names":["differential-shellcheck"]}' > payload.json | ||
# 310| | ||
# 311| local curl_args=( | ||
|
||
Error: SHELLCHECK_WARNING: | ||
src/functions.sh:309:152: info[SC2312]: Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore). | ||
# 307| is_debug && local verbose=--verbose | ||
# 308| | ||
# 309|-> echo '{"commit_oid":"'"${HEAD}"'","ref":"'"${GITHUB_REF//merge/head}"'","analysis_key":"differential-shellcheck","sarif":"'"$(gzip -c output.sarif | base64 -w0)"'","tool_names":["differential-shellcheck"]}' > payload.json | ||
# 310| | ||
# 311| local curl_args=( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Error: SHELLCHECK_WARNING: | ||
src/functions.sh:309:46: warning[SC2154]: GITHUB_REF is referenced but not assigned. | ||
# 307| is_debug && local verbose=--verbose | ||
# 308| | ||
# 309|-> echo '{"commit_oid":"'"${HEAD}"'","ref":"'"${GITHUB_REF//merge/head}"'","analysis_key":"differential-shellcheck","sarif":"'"$(gzip -c output.sarif | base64 -w0)"'","tool_names":["differential-shellcheck"]}' > payload.json | ||
# 310| | ||
# 311| local curl_args=( | ||
|
||
Error: SHELLCHECK_WARNING: | ||
src/functions.sh:309:129: info[SC2312]: Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore). | ||
# 307| is_debug && local verbose=--verbose | ||
# 308| | ||
# 309|-> echo '{"commit_oid":"'"${HEAD}"'","ref":"'"${GITHUB_REF//merge/head}"'","analysis_key":"differential-shellcheck","sarif":"'"$(gzip -c output.sarif | base64 -w0)"'","tool_names":["differential-shellcheck"]}' > payload.json | ||
# 310| | ||
# 311| local curl_args=( | ||
|
||
Error: SHELLCHECK_WARNING: | ||
src/functions.sh:309:152: info[SC2312]: Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore). | ||
# 307| is_debug && local verbose=--verbose | ||
# 308| | ||
# 309|-> echo '{"commit_oid":"'"${HEAD}"'","ref":"'"${GITHUB_REF//merge/head}"'","analysis_key":"differential-shellcheck","sarif":"'"$(gzip -c output.sarif | base64 -w0)"'","tool_names":["differential-shellcheck"]}' > payload.json | ||
# 310| | ||
# 311| local curl_args=( |
Empty file.
Empty file.
Oops, something went wrong.