mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-05 20:41:35 -07:00
Merge branch 'e-kwsm-SC3013'
This commit is contained in:
commit
62a8ecf9bf
2 changed files with 3 additions and 3 deletions
|
@ -17,6 +17,8 @@
|
||||||
- SC2317 about unreachable commands is now less spammy for nested ones.
|
- SC2317 about unreachable commands is now less spammy for nested ones.
|
||||||
- SC2292, optional suggestion for [[ ]], now triggers for Busybox.
|
- SC2292, optional suggestion for [[ ]], now triggers for Busybox.
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- SC3013: removed since the operators `-ot/-nt/-ef` are specified in POSIX.1-2024
|
||||||
|
|
||||||
## v0.10.0 - 2024-03-07
|
## v0.10.0 - 2024-03-07
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -87,7 +87,7 @@ checkForDecimals = ForShell [Sh, Dash, BusyboxSh, Bash] f
|
||||||
|
|
||||||
|
|
||||||
prop_checkBashisms = verify checkBashisms "while read a; do :; done < <(a)"
|
prop_checkBashisms = verify checkBashisms "while read a; do :; done < <(a)"
|
||||||
prop_checkBashisms2 = verify checkBashisms "[ foo -nt bar ]"
|
prop_checkBashisms2 = verifyNot checkBashisms "[ foo -nt bar ]"
|
||||||
prop_checkBashisms3 = verify checkBashisms "echo $((i++))"
|
prop_checkBashisms3 = verify checkBashisms "echo $((i++))"
|
||||||
prop_checkBashisms4 = verify checkBashisms "rm !(*.hs)"
|
prop_checkBashisms4 = verify checkBashisms "rm !(*.hs)"
|
||||||
prop_checkBashisms5 = verify checkBashisms "source file"
|
prop_checkBashisms5 = verify checkBashisms "source file"
|
||||||
|
@ -512,8 +512,6 @@ bashismBinaryTestFlags = buildTestFlagMap [
|
||||||
-- information.
|
-- information.
|
||||||
(["<", ">", "\\<", "\\>", "<=", ">=", "\\<=", "\\>="],
|
(["<", ">", "\\<", "\\>", "<=", ">=", "\\<=", "\\>="],
|
||||||
(3012, [Dash, BusyboxSh], \op -> "lexicographical " ++ op ++ " is")),
|
(3012, [Dash, BusyboxSh], \op -> "lexicographical " ++ op ++ " is")),
|
||||||
(["-nt", "-ot", "-ef"],
|
|
||||||
(3013, [Dash, BusyboxSh], \op -> op ++ " is")),
|
|
||||||
(["=="],
|
(["=="],
|
||||||
(3014, [BusyboxSh], \op -> op ++ " in place of = is")),
|
(3014, [BusyboxSh], \op -> op ++ " in place of = is")),
|
||||||
(["=~"],
|
(["=~"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue