Skip to content

remove bad shellcheck tests and indicate which are error tests #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion tests/fixtures/shellcheck-tests/assignment-word3/source.sh

This file was deleted.

1 change: 0 additions & 1 deletion tests/fixtures/shellcheck-tests/assignment-word4/source.sh

This file was deleted.

1 change: 0 additions & 1 deletion tests/fixtures/shellcheck-tests/assignment-word6/source.sh

This file was deleted.

1 change: 0 additions & 1 deletion tests/fixtures/shellcheck-tests/back-ticked3/source.sh

This file was deleted.

1 change: 0 additions & 1 deletion tests/fixtures/shellcheck-tests/brace-group2/source.sh

This file was deleted.

4 changes: 2 additions & 2 deletions tests/fixtures/shellcheck-tests/condition12/source.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[ a == b
-o c == d ]
[ a == b \
-o c == d ]
1 change: 0 additions & 1 deletion tests/fixtures/shellcheck-tests/condition14/source.sh

This file was deleted.

1 change: 0 additions & 1 deletion tests/fixtures/shellcheck-tests/condition15/source.sh

This file was deleted.

1 change: 0 additions & 1 deletion tests/fixtures/shellcheck-tests/for-clause12/source.sh

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1095: You need a space or linefeed between the function name and body."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1065: Trying to declare parameters? Don't. Use () and refer to params as $1, $2.."
}
3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/here-doc2/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1040: When using <<-, you can only indent with tabs."
}
3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/if-clause2/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1051: No semicolons directly after 'then'."
}
3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/if-clause3/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1053: No semicolons directly after 'else'."
}
3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/if-clause4/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1075: Use 'elif' instead of 'else if'"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1054: You need a space after the '{'"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1054: You need a space after the '{'"
}
3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/pipeline2/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1035: You are missing a required space after the !."
}
3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/script2/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1017: Literal carriage return. Run script through tr -d '\r'"
}
3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/script3/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1018: This is a unicode non-breaking space. Delete and retype it"
}
2 changes: 0 additions & 2 deletions tests/fixtures/shellcheck-tests/script4/source.sh

This file was deleted.

3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/separator1/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1045: It's not 'foo &; bar', just 'foo & bar'."
}
3 changes: 3 additions & 0 deletions tests/fixtures/shellcheck-tests/shebang2/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"shellcheck": "SC1084: Use #!, not !#, for the shebang."
}