Jon Higgs
7fb27310e1
Rely upon /usr/bin/env to find bash
...
This allows you to use the homebrew install Bash 4 on MacOS systems. It
should compatible with most if not all modern Linux distros.
2018-02-26 11:24:09 +11:00
Jon Higgs
00d3c09ddb
Raise error unless interpreter supports globstar
2018-02-26 11:23:42 +11:00
Vidar Holen
b7a8b090d2
SC2229: Warn about 'read $var'
2018-02-25 13:47:58 -08:00
Vidar Holen
72044a79c6
Update changelog
2018-02-25 13:47:58 -08:00
Vidar Holen
6511dc0246
Add missing import
2018-02-25 13:29:06 -08:00
Vidar Holen
740441f2c4
Merge pull request #1121 from PeterDaveHello/update-travis-ci-doc
...
[Docs] Update Travis CI part in README.md
2018-02-25 11:37:00 -08:00
Peter Dave Hello
b311563421
Update Travis CI part in README.md
2018-02-20 04:52:12 +08:00
Vidar Holen
6d257bfa17
Warn about 'while!' and 'while:'
2018-02-17 21:58:29 -08:00
Vidar Holen
d8717c7046
s/parser error/syntax error/g
2018-02-17 17:18:05 -08:00
Vidar Holen
7aa3a7ffc3
Improve message for SC2163 (export $var). Helps #1117
2018-02-17 17:12:11 -08:00
Vidar Holen
017af8333f
Merge pull request #1112 from Nightfirecat/sc2154-local-test
...
Add test for `local` keyword in SC2154
2018-02-10 08:04:07 -08:00
Jordan Atwood
f73d6f2332
Add test for `local` keyword in SC2154
...
Follow-up to koalaman/shellcheck#988
2018-02-07 17:50:55 -08:00
koalaman
a840f4e464
Merge pull request #1100 from mkhl/SC2029
...
SC2029: Skip when there are options to ssh
2018-01-24 19:38:38 -08:00
Vidar Holen
0f5e40c076
Mention shellcheck-static for Arch
2018-01-24 09:02:56 -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
ba5f20deda
Fix parsing of escaped chars in regex groups. Fixes #1077
2018-01-21 16:13:16 -08:00
Vidar Holen
c86885427c
Warn about comments/blanks before shebang. Fixes #844
2018-01-21 13:57:44 -08: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
3b004275cf
Add unit test for issue #1091
2018-01-20 11:42:31 -08:00
koalaman
72971fa52b
Merge pull request #1097 from sdknudsen/fix/recognize-ids-with-underscores
...
Use readVariableName combinator
2018-01-20 11:35:22 -08:00
Stefan Knudsen
dbdab5705f
Use readVariableName combinator
2018-01-19 16:19:06 -05:00
Vidar Holen
46a3019ed7
Fix annotations for here documents ( fixes #1071 )
2018-01-17 19:20:10 -08:00
Vidar Holen
81978d15bd
Remove unused here doc boundary concept.
2018-01-17 18:48:17 -08:00
Vidar Holen
1d0db9267d
Mention SC2224-6 about mv/cp/ln without destination
2018-01-17 18:32:07 -08:00
Vidar Holen
a6fb9d1ef8
Warn about C-style comments
2018-01-17 18:14:36 -08:00
Vidar Holen
dc1e7c1bd4
Make docker image shellcheck-alpine behave more like alpine.
2018-01-14 18:01:18 -08:00
Vidar Holen
5b14dba489
Parse 'else if' correctly, and not like elif. Fixes #1088 .
2018-01-13 22:42:19 -08:00
koalaman
ee997fdec4
Merge pull request #1093 from albertodonato/snap-package
...
Add snapcraft.yaml to build snap package
2018-01-13 19:36:06 -08:00
koalaman
1badeff383
Merge pull request #1092 from etam/patch-1
...
Update openSUSE instruction
2018-01-13 19:33:18 -08:00
Vidar Holen
2d5ed23ca1
Warn about cp/mv/ln with a single argument. Fixes #1080 .
2018-01-13 16:44:58 -08:00
Alberto Donato
ec581cee90
Add snapcraft.yaml to build snap package
2018-01-13 00:31:26 +01:00
Adam Mizerski
bb32289ee3
Update openSUSE instruction
...
Package is main repo of all versions. No need to add repository.
2018-01-11 18:51:39 +01:00
Vidar Holen
31d6b063d9
Improve indented here doc token message.
2018-01-10 21:12:22 -08:00
Vidar Holen
3c5c74ff04
Add quote warning specific to : ${var=val}. Fixes #1084
2018-01-06 10:53:53 -08:00
koalaman
9657e8dda3
Merge pull request #1078 from CyberShadow/pull-20171221-031403
...
Extend SC2216/SC2217 with 'true' and 'false'
2017-12-20 20:44:06 -08:00
Vladimir Panteleev
6ed60b403f
Extend SC2216/SC2217 with 'true' and 'false'
2017-12-21 03:29:17 +00:00
koalaman
8fa8823981
Merge pull request #1072 from vapier/master
...
convert http:// URIs to https://
2017-12-14 09:35:57 -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
c36f6d89ba
Stable version 0.4.7
...
This release is dedicated to net neutrality. Remember when the Internet
was a meritocracy? [Please drink a verification can to continue.]
2017-12-08 20:29:12 -08:00
Vidar Holen
e801da0621
Add a changelog
2017-12-07 17:49:43 -08:00
koalaman
51e6bf809f
Merge pull request #1041 from LukeShu/fix-isClosingFileOp
...
Fix isClosingFileOp (fixes issue #862 )
2017-11-08 10:15:21 -08:00
Vidar Holen
3413a076ff
Cabal: Don't make executables depend on library
2017-11-05 20:51:39 -08:00
Vidar Holen
53f63b85bb
Use Data.Map.Strict instead of Map.insertWith'
2017-11-05 20:11:04 -08:00
Luke Shumaker
df068bc8ed
Fix isClosingFileOp (fixes issue #862 )
...
The isClosingFileOp function expected closing file ops to use T_IoFile, but
they actually use T_IoDuplicate; so it effectively always returned False.
2017-11-05 18:53:01 -05:00
Vidar Holen
102683ab04
Try to warn when using directives after commands ( #981 )
2017-11-04 15:22:17 -07:00
Vidar Holen
acead72c93
Improve directive parsing
2017-10-29 17:39:13 -07:00
Vidar Holen
0c1e2bbd4d
Warn when using directives in front of elif and case items ( #1036 )
2017-10-29 16:31:46 -07:00
koalaman
5d9cb81008
Merge pull request #1026 from PeterDaveHello/patch-1
...
Enable syntax highlight in README.md code block
2017-10-15 19:09:32 -07:00
koalaman
1491402dcb
Merge pull request #1027 from PeterDaveHello/README.md-Table-of-Contents
...
Add Table of Contents in README.md
2017-10-15 19:08:16 -07:00