mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-21 14:52:36 +08:00
Change some tests to include 2331 so they don't fail anymore
This commit is contained in:
@@ -359,7 +359,7 @@ prop_optionIncludes2 =
|
|||||||
|
|
||||||
prop_optionIncludes3 =
|
prop_optionIncludes3 =
|
||||||
-- expect 2086, no inclusions provided, so it is reported
|
-- expect 2086, no inclusions provided, so it is reported
|
||||||
[2086] == checkOptionIncludes Nothing "#!/bin/sh\n var='a b'\n echo $var"
|
[2086, 2331] == checkOptionIncludes Nothing "#!/bin/sh\n var='a b'\n echo $var"
|
||||||
|
|
||||||
prop_optionIncludes4 =
|
prop_optionIncludes4 =
|
||||||
-- expect 2086 & 2154, only 2154 included, so only that's reported
|
-- expect 2086 & 2154, only 2154 included, so only that's reported
|
||||||
@@ -520,7 +520,7 @@ prop_hereDocsAreParsedWithoutTrailingLinefeed = 1044 `elem` result
|
|||||||
|
|
||||||
prop_hereDocsWillHaveParsedIndices = null result
|
prop_hereDocsWillHaveParsedIndices = null result
|
||||||
where
|
where
|
||||||
result = check "#!/bin/bash\nmy_array=(a b)\ncat <<EOF >> ./test\n $(( 1 + my_array[1] ))\nEOF"
|
result = check "#!/bin/bash\nreadonly my_array=(a b)\ncat <<EOF >> ./test\n $(( 1 + my_array[1] ))\nEOF"
|
||||||
|
|
||||||
prop_rcCanSuppressDfa = null result
|
prop_rcCanSuppressDfa = null result
|
||||||
where
|
where
|
||||||
|
Reference in New Issue
Block a user