Vidar Holen
|
b625562d60
|
Add POSIX checks for more Bash-specific variables (fixes #2093)
|
2020-12-05 20:11:12 -08:00 |
Vidar Holen
|
65044c2568
|
SC2095: Also warn if the command is backgrounded
|
2020-11-29 13:01:23 -08:00 |
Keith Smiley
|
619662adb6
|
Add readonly to SC2155
This adds a warning for readonly masking the return value of function.
This is mentioned in the wiki
https://github.com/koalaman/shellcheck/wiki/SC2155#problematic-code-in-the-case-of-readonly
but didn't actually produce a warning.
Fixes https://github.com/koalaman/shellcheck/issues/1336
|
2020-10-23 17:29:04 -07:00 |
Vidar Holen
|
28d3279ba6
|
Optional style warning about [ x$var = xval ]
|
2020-10-19 20:04:58 -07:00 |
Vidar Holen
|
256457c47a
|
Use getopts parser to find 'read' arrays (fixes #2073)
|
2020-10-18 22:57:16 -07:00 |
Vidar Holen
|
3104cec770
|
SC2267: Warn about xargs -i (fixes #2058)
|
2020-10-18 22:10:14 -07:00 |
Vidar Holen
|
f100c2939e
|
Rewrite getopts style option parser
|
2020-10-18 21:34:58 -07:00 |
Vidar Holen
|
8d99926554
|
Recognize `local -x` similarly to `export` (fixes #2069)
|
2020-10-18 15:15:31 -07:00 |
Vidar Holen
|
218deb6d01
|
Update SC2091/SC2092 message and ignore in quotes.
|
2020-09-08 19:30:13 -07:00 |
Vidar Holen
|
c4cc2debb7
|
Improve compatibility checks
|
2020-09-07 21:05:49 -07:00 |
Vidar Holen
|
cfd68ee0c2
|
Give each sh/dash compatibility warning its own SC3xxx error code
|
2020-09-01 16:48:14 -07:00 |
Vidar Holen
|
58783ab3cc
|
Allow specifying ranges in disable directives
|
2020-09-01 16:22:15 -07:00 |
Vidar Holen
|
43191fa71d
|
Suppress SC2035 for echo * and printf * (fixes #2036)
|
2020-09-01 14:19:28 -07:00 |
Vidar Holen
|
c9be7ab2eb
|
Parse assignments according to spec (fixes #2022)
|
2020-08-23 18:46:13 -07:00 |
Vidar Holen
|
9e59bcca91
|
Upgrade SC2169 (unsupported in dash) from warning to error (fixes #2013)
|
2020-08-23 15:49:20 -07:00 |
Vidar Holen
|
a62d9f10c2
|
Warn when using &/| between test statements
|
2020-08-23 15:43:33 -07:00 |
Vidar Holen
|
50067ddf94
|
Consider variables in -z/-n tests to be checked
|
2020-08-08 12:32:20 -07:00 |
Vidar Holen
|
3fa5b7d3bd
|
Merge branch 'supportMinusNZ' of https://github.com/donnerpeter/shellcheck into donnerpeter-supportMinusNZ
|
2020-08-08 11:22:00 -07:00 |
Vidar Holen
|
e779aedac3
|
Modernize getting mapfile array name
|
2020-08-07 16:41:18 -07:00 |
Vidar Holen
|
3ef1175566
|
Merge branch 'issue_1759_mapfile_proc_substition' of https://github.com/Gandalf-/shellcheck into Gandalf--issue_1759_mapfile_proc_substition
|
2020-08-07 15:57:59 -07:00 |
Vidar Holen
|
3e50a2fce8
|
Suppress SC2216 for du --files0-from or --exclude-from (fixes #1286)
|
2020-08-07 14:59:34 -07:00 |
Vidar Holen
|
1ac2c31728
|
Warn when shell functions blatantly recurse (fixes #1994)
|
2020-07-27 21:50:33 -07:00 |
Vidar Holen
|
cc81bdee31
|
Improve SC1033/SC1034 message
|
2020-07-27 18:44:07 -07:00 |
Vidar Holen
|
34885142e7
|
Handle tilde expansion in pattern matching (fixes #1769)
|
2020-07-27 18:34:42 -07:00 |
Vidar Holen
|
14e6806092
|
Handle literal linefeeds in printf format strings (fixes #2007)
|
2020-07-25 17:36:22 -07:00 |
Vidar Holen
|
5d753212fb
|
Improve handling of command prefixes like exec/command (fixes #2008)
|
2020-07-25 13:45:05 -07:00 |
Vidar Holen
|
5b86777f9d
|
Warn about non-POSIX case modification expansions (fixes #1977)
|
2020-07-22 17:32:00 -07:00 |
Vidar Holen
|
210cdcd01a
|
Treat $x/ or $(x)/ as ./ when finding sourced files (fixes #1998)
|
2020-06-28 17:24:07 -07:00 |
Vidar Holen
|
b52f58473d
|
Merge pull request #1999 from aureliojargas/patch-1
SC1102: Fix typo in error message: substition
|
2020-06-28 16:04:56 -07:00 |
Vidar Holen
|
739eaadbf5
|
Warn about extra spaces between ((s in for((;;))
|
2020-06-28 16:01:15 -07:00 |
Aurelio Jargas
|
a61d8a232c
|
SC1102: Fix typo in error message: substition
|
2020-06-26 02:13:33 +02:00 |
Vidar Holen
|
12d9c1b76d
|
Clarify that SC1090 refers to ShellCheck, not sh
|
2020-06-24 11:50:27 -07:00 |
Vidar Holen
|
5cf2c00ff7
|
Warn about defining and using an alias in a single command (fixes #1807)
|
2020-05-25 23:24:33 -07:00 |
Vidar Holen
|
a08ad3bee9
|
Count $# as an argument reference in SC2120
|
2020-05-25 23:24:33 -07:00 |
Vidar Holen
|
c2a15ce8e9
|
Allow disabling SC1072/SC1073 with annotations (fixes #1931)
|
2020-05-03 21:57:16 -07:00 |
Vidar Holen
|
d6adbfde78
|
Improve SC2259/60/61 messages
|
2020-05-03 21:46:16 -07:00 |
Vidar Holen
|
2030b83607
|
Warn about duplicate uses of stdin/out/err
|
2020-05-03 11:54:25 -07:00 |
Vidar Holen
|
8aa40c43ed
|
Merge pull request #1926 from scop/spelling
Spelling fixes
|
2020-05-02 18:39:44 -07:00 |
Ville Skyttä
|
60e80e4ce1
|
Spelling fixes
|
2020-04-25 08:29:38 +03:00 |
Joseph C. Sible
|
e0daa936d2
|
Revert "Use fromRight instead of reimplementing it"
We still support GHC 8.0, which didn't have fromRight.
This reverts commit 64c31d9142 .
|
2020-04-24 22:14:08 -04:00 |
Vidar Holen
|
75863a887e
|
Merge pull request #1918 from josephcsible/getsuspiciousregexwildcard
Clean up and optimize getSuspiciousRegexWildcard
|
2020-04-12 15:32:00 -07:00 |
Vidar Holen
|
413f0048b8
|
Merge pull request #1917 from josephcsible/thenskip
Simplify thenSkip, and use in another location
|
2020-04-12 15:26:36 -07:00 |
Vidar Holen
|
e7b5fb9742
|
Merge pull request #1907 from josephcsible/formatters
Clean up formatters
|
2020-04-12 15:23:17 -07:00 |
Vidar Holen
|
30523555af
|
Merge pull request #1906 from josephcsible/shellsupport
Simplify ShellSupport
|
2020-04-12 15:22:52 -07:00 |
Vidar Holen
|
58d3e50f43
|
Merge pull request #1905 from josephcsible/skiprepeating
Make skipRepeating lazier and faster
|
2020-04-12 15:21:39 -07:00 |
Vidar Holen
|
73cc11fd0a
|
Merge pull request #1901 from josephcsible/bracedstring
Mostly get rid of bracedString
|
2020-04-12 15:14:50 -07:00 |
Joseph C. Sible
|
163c710ba7
|
Clean up and optimize getSuspiciousRegexWildcard
|
2020-04-12 16:15:45 -04:00 |
Vidar Holen
|
ab1610b004
|
Merge pull request #1903 from josephcsible/fixer
Only perform the comparisons once
|
2020-04-11 17:23:51 -07:00 |
Vidar Holen
|
148468be70
|
Merge pull request #1904 from josephcsible/commands
Simplify Commands
|
2020-04-11 17:23:39 -07:00 |
Vidar Holen
|
5eac721fcf
|
Merge pull request #1902 from josephcsible/astlib
Clean up ASTLib
|
2020-04-11 17:23:08 -07:00 |