diff --git a/gitrise.sh b/gitrise.sh index 0eeb724..558b788 100755 --- a/gitrise.sh +++ b/gitrise.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash + # shellcheck disable=SC2155 # disbales "Declare and assign separately to avoid masking return values." # shellcheck disable=SC2120 diff --git a/tests/build_artifacts_tests.sh b/tests/build_artifacts_tests.sh index 08efaa5..d07dccf 100755 --- a/tests/build_artifacts_tests.sh +++ b/tests/build_artifacts_tests.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +#shellcheck disable=SC1091 + source ./gitrise.sh -T testFetchingBuildArtifactsSlugs() { diff --git a/tests/build_info_tests.sh b/tests/build_info_tests.sh index 7b9b939..1b8ec1a 100755 --- a/tests/build_info_tests.sh +++ b/tests/build_info_tests.sh @@ -1,10 +1,6 @@ #!/usr/bin/env bash -# shellcheck disable=SC1091,SC2155,SC2154,SC2034 -# Not following: (error message here) -# Declare and assign separately to avoid masking return values. -# var is referenced but not assigned. -# var appears unused +# shellcheck disable=SC1091,SC2155 source ./gitrise.sh -T diff --git a/tests/build_logs_tests.sh b/tests/build_logs_tests.sh index 7f47174..430ce7c 100755 --- a/tests/build_logs_tests.sh +++ b/tests/build_logs_tests.sh @@ -1,9 +1,6 @@ #!/usr/bin/env bash -# shellcheck disable=SC1091,SC2155,SC2154 -# Not following: (error message here) -# Declare and assign separately to avoid masking return values. -# var is referenced but not assigned. +# shellcheck disable=SC1091,SC2155 source ./gitrise.sh -T diff --git a/tests/build_status_message_tests.sh b/tests/build_status_message_tests.sh index 40d97ef..ddbf5e5 100755 --- a/tests/build_status_message_tests.sh +++ b/tests/build_status_message_tests.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash # shellcheck disable=SC1091,SC2155 -# Not following: (error message here) -# Declare and assign separately to avoid masking return values. + source ./gitrise.sh -T testBuildTimedOutMessage() { diff --git a/tests/download_single_artifacts_tests.sh b/tests/download_single_artifacts_tests.sh index 417f18e..d39e850 100755 --- a/tests/download_single_artifacts_tests.sh +++ b/tests/download_single_artifacts_tests.sh @@ -1,10 +1,6 @@ #!/usr/bin/env bash -# shellcheck disable=SC1091,SC2155,SC2154,SC2034 -# Not following: (error message here) -# Declare and assign separately to avoid masking return values. -# var is referenced but not assigned. -# var appears unused +# shellcheck disable=SC1091,SC2155 source ./gitrise.sh -T diff --git a/tests/gitrise_logs_tests.sh b/tests/gitrise_logs_tests.sh index 64d73f8..fd76f16 100755 --- a/tests/gitrise_logs_tests.sh +++ b/tests/gitrise_logs_tests.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash -# shellcheck disable=SC1091,SC2155,SC2154 -# Not following: (error message here) +# shellcheck disable=SC1091,SC2155 source ./gitrise.sh -T -d diff --git a/tests/input_validation_tests.sh b/tests/input_validation_tests.sh index 85e9078..e88eb08 100755 --- a/tests/input_validation_tests.sh +++ b/tests/input_validation_tests.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash # shellcheck disable=SC1091,SC2155 -# Not following: (error message here) -# Declare and assign separately to avoid masking return values. testMissingWorkflow() { local expected_message="ERROR: Missing arguments(s). All these args must be passed: --workflow,--slug,--access-token" diff --git a/tests/options_tests.sh b/tests/options_tests.sh index 73648f6..2b94893 100755 --- a/tests/options_tests.sh +++ b/tests/options_tests.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash # shellcheck disable=SC1091,SC2155 -# Not following: (error message here) -# Declare and assign separately to avoid masking return values. + source ./gitrise.sh -T testEnvVars() {