Vidar Holen
b7a8b090d2
SC2229: Warn about 'read $var'
2018-02-25 13:47:58 -08:00
Vidar Holen
7aa3a7ffc3
Improve message for SC2163 (export $var). Helps #1117
2018-02-17 17:12:11 -08:00
Martin Kühl
ccaacb108a
SC2029: Skip when there are options to ssh
...
Fixes #327
SC2029 generates false positives when given an ssh command that includes
options with arguments because it assumes the first non-option must be
the host:port argument and the last argument is a command to run.
As suggested the comments on #327 , this change fixes those by skipping
the check when there are any options present.
2018-01-24 13:05:22 +01:00
Martin Kühl
56751413b4
SC2029: Add false positive test
...
This change adds a test case for a valid command that gets falsely
flagged with SC2029.
2018-01-24 13:04:26 +01:00
Vidar Holen
7b3c4025fb
Warn about redirs in the middle of 'find' commands. Fixes #405
2018-01-21 11:12:22 -08:00
Vidar Holen
2d5ed23ca1
Warn about cp/mv/ln with a single argument. Fixes #1080 .
2018-01-13 16:44:58 -08:00
Mike Frysinger
161801a86e
convert http:// URIs to https://
...
Also update the ShellCheck homepage to the new dedicated domain.
2017-12-14 01:06:43 -05:00
Vidar Holen
371dcdda3a
Warn about missing default case for getopts.
2017-09-16 10:26:28 -07:00
Vidar Holen
38044e3f75
Fix 2062 for grep -e -foo bar* and --regex -foo bar*
2017-09-09 17:03:29 -07:00
Vidar Holen
b0f6f935f3
Don't suggset quoting in grep -- -foo bar* ( #517 )
2017-09-09 16:57:06 -07:00
Vidar Holen
bd2facb245
Suggest (( expr )) over let expr ( #813 )
2017-09-09 16:07:38 -07:00
Vidar Holen
8f99d2b008
Don't warn about missing path for find -O3 . ( #942 )
2017-07-08 15:46:02 -07:00
Vidar Holen
8f31ae913b
Skip command argument when checking trap signal specs ( #946 )
2017-07-03 10:36:51 -07:00
Vidar Holen
ac3f0b3360
SC2114 about rm -rf /usr is no longer silenced by --
2017-05-28 14:44:58 -07:00
Vidar Holen
070a465b64
Recognize missing and superfluous cases in getopts loops.
2017-05-28 13:38:04 -07:00
mr.Shu
5e4c288cf4
SC2174: Do not warn at `mkdir -pm 0700 ../foo`
...
* Do not warn when `mkdir -pm 0700` is used with combination of paths
like `..` and `.`
* Fixes #854
Signed-off-by: mr.Shu <mr@shu.io>
2017-05-16 11:45:04 -07:00
Vidar Holen
750212af39
Add less common actions to find -o check.
2017-03-03 20:43:00 -08:00
Vidar Holen
128d5d6013
Don't warn about grep pattern issues when using -F.
2017-01-21 16:20:55 -08:00
Vidar Holen
e679ff222a
Warn when using deprecated egrep/fgrep.
2016-12-30 16:55:31 -08:00
Austin English
af87fe9315
add missing references to dash
2016-12-20 17:10:55 -08:00
Vidar Holen
838f0ce4dc
Count "%(%Y%m%d)T" as a single format in printf.
2016-12-17 12:48:09 -08:00
Vidar Holen
cf1c46d852
Add deprecation warning for tempfile
2016-12-10 09:58:27 -08:00
Vidar Holen
08f7ff37c5
Some cleanup and refactoring.
2016-11-12 15:51:36 -08:00
Vidar Holen
b0dae063bf
Add info when using 'find' without path
2016-09-25 11:56:32 -07:00
Vidar Holen
868d53af95
Warn about passing globs to `unset`.
2016-09-24 14:49:52 -07:00
Vidar Holen
87481dce25
Warn about printf hello world and printf "%s %s" foo
2016-09-06 21:16:59 -07:00
Vidar Holen
36263fb3f5
s/range/class/ when warning about tr '[abc]'
2016-07-05 08:51:40 -07:00
Vidar Holen
db0c8c2dc9
Separate out command specific checks.
...
The checks use a better interface and give
an overall speed boost of 10%.
2016-04-10 17:01:40 -07:00