-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from Azbagheri/release/0.7.0
Release/0.7.0
- Loading branch information
Showing
20 changed files
with
138 additions
and
49 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
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
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
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
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
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
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
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,7 @@ | ||
## New Features and Improvements | ||
- Added support for excluding specific ShellCheck issues from static analysis, allowing users to suppress warnings or errors that are not relevant to their workflow. | ||
- Improved the Shellcheck's installation process by pulling the binary from its official Docker image using a multi-stage build. | ||
|
||
## Ownership Change Notice: | ||
|
||
This is the first release after the ownership of this repository has changed. For important updates and instructions, please refer to the README file. If you have any questions or concerns regarding the action, feel free to open an issue. Thank you for your continued support! |
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#! /bin/bash | ||
|
||
VERSION="v0.6.0" | ||
VERSION="v0.7.0" | ||
echo $VERSION |
6 changes: 6 additions & 0 deletions
6
test_data/exclude_issues/test_script_exclude_multiple_errors.sh
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,6 @@ | ||
#! /bin/bash | ||
|
||
var=World; echo "Hello " | ||
echo "$(date)" | ||
|
||
$foo=42 |
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,3 @@ | ||
#! /bin/bash | ||
|
||
echo "Hello $name" |
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,3 @@ | ||
#!/bin/sh | ||
var = 42 | ||
echo -n 42 |
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,37 @@ | ||
#! /bin/bash | ||
|
||
source ./entrypoint.sh "" "" "" "" "--test" | ||
|
||
test_exclude_no_error(){ | ||
input_paths="./test_data/exclude_issues/test_script_exclude_none.sh" | ||
severity_mode="style" | ||
exclude_issues="" | ||
local expected_error="SC2154" | ||
local actual_message=$(process_input) | ||
|
||
assertContains "Actual messages:$actual_message Did not find the message.\n" "$actual_message" "$expected_error" | ||
} | ||
|
||
test_exclude_one_error(){ | ||
input_paths="./test_data/exclude_issues/test_script_exclude_one_error.sh" | ||
severity_mode="style" | ||
exclude_issues="SC2283" | ||
local expected_error="SC3037" | ||
local not_expected_error="SC2283" | ||
local actual_message=$(process_input) | ||
|
||
assertContains "Actual messages:$actual_message Did not find the message.\n" "$actual_message" "$expected_error" | ||
assertNotContains "Actual messages:$actual_message contains the message.\n" "$actual_message" "$not_expected_error" | ||
} | ||
|
||
test_exclude_multiple_errors(){ | ||
input_paths="./test_data/exclude_issues/test_script_exclude_multiple_errors.sh" | ||
severity_mode="style" | ||
exclude_issues="SC1017,SC2281,SC2034,SC2154,SC2005" | ||
local expected_message="Successfully scanned" | ||
local actual_message=$(process_input) | ||
|
||
assertContains "Actual messages:$actual_message Did not find the message.\n" "$actual_message" "$expected_message" | ||
} | ||
|
||
source ./tests/shunit2 |
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
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
Oops, something went wrong.