Vidar Holen
795a881219
Fix docker image workdir and add test
2018-03-21 09:39:06 -07:00
Vidar Holen
6dd5350e3b
Merge pull request #1143 from pratikmallya/simplify_dockerbuild
...
Simplify Dockerfile
2018-03-20 22:31:36 -07:00
Vidar Holen
a5b359591c
Merge branch 'master' into simplify_dockerbuild
2018-03-20 22:31:21 -07:00
Vidar Holen
966194e387
Merge branch 'pratikmallya-simplify_dockerbuild'
2018-03-20 22:10:24 -07:00
Vidar Holen
71bcc80c2f
Allow more Docker build caching
2018-03-20 22:09:13 -07:00
Vidar Holen
48616225b3
Merge pull request #1147 from tdmalone/patch-1
...
README - Travis script for updating shellcheck ver
2018-03-20 19:28:39 -07:00
Tim Malone
99276cb9f5
README - Travis script for updating shellcheck ver
...
Shellcheck in default Travis builds is currently a version behind
2018-03-19 11:15:28 +11:00
Pratik Mallya
f769d4e92c
Add TravisCI Build Status file
2018-03-15 23:13:54 -05:00
Pratik Mallya
71df01c00f
Simplify Dockerfile
...
Use multi stage Dockerfile to greatly simplify build.
2018-03-15 23:12:28 -05:00
Vidar Holen
5364701914
Merge branch 'simplify_dockerbuild' of https://github.com/pratikmallya/shellcheck into pratikmallya-simplify_dockerbuild
2018-03-15 09:53:50 -07:00
Vidar Holen
fb97aca5a6
Merge pull request #1140 from phadej/src
...
Move library into src/
2018-03-15 16:52:26 +00:00
Pratik Mallya
6b81a9924c
Simplify Dockerfile
...
Use multi stage Dockerfile to greatly simplify build.
2018-03-14 21:43:34 -05:00
Oleg Grenrus
cd7c077ecc
Move library into src/
2018-03-08 19:57:40 +02:00
Oleg Grenrus
b33607b048
Add custom-setup stanza and containers lowerbound
...
custom-setup:
- http://cabal.readthedocs.io/en/latest/developing-packages.html#custom-setup-scripts
- https://www.well-typed.com/blog/2015/07/cabal-setup-deps/
Bounds:
- containers-0.5 is required if Data.Map.Strict
- parsec-3.0 for Text.Parsec
- json-0.3.6 for makeObj
2018-03-08 19:35:50 +02:00
Vidar Holen
969230f171
MacPorts version appears unmaintained. Remove from docs.
2018-03-08 08:48:03 -08:00
Vidar Holen
a98d69f4ff
Update CHANGELOG with $var[ and here doc expansion fixes
2018-03-04 15:42:52 -08:00
Vidar Holen
f71c142a44
Don't ignore parse failures in here documents. Fixes #1135 .
2018-03-04 15:24:04 -08:00
Vidar Holen
9dfcf54f10
Functionality for emitting parse errors but still continue
2018-03-04 14:42:47 -08:00
Vidar Holen
c8cd9dd09c
Add a debugParseScript for development
2018-03-03 15:36:50 -08:00
Vidar Holen
8b8aeb4409
Rephrase SC2069 (cmd 2>&1 > file) and make it a warning. Fixes #633
2018-03-03 13:33:24 -08:00
Vidar Holen
ee354ffce8
POSIX warning for export -[^p]. Fixes #1130 .
2018-02-27 20:38:02 -08:00
Vidar Holen
9fc3ddf849
Fix SC1087 to trigger on any $var[, not just $var[@]
2018-02-25 18:25:47 -08:00
Vidar Holen
ecb9d07f52
Update changelog with associative arrays in (()) fix
2018-02-25 18:15:55 -08:00
Vidar Holen
d16bf41c3d
Better support arrays in arithmetic contexts. Fixes #1074
2018-02-25 18:08:38 -08:00
Vidar Holen
8d5e3a80ae
Merge pull request #1123 from jonhiggs/check-for-which-usage
...
Check for calls to `which`.
2018-02-25 17:08:37 -08:00
Vidar Holen
34e0fa53c8
Merge pull request #1125 from jonhiggs/nextnumber-macos-support
...
MacOS support for nextnumber
2018-02-25 17:08:15 -08:00
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
Jon Higgs
e8fc09414a
Check for calls to `which`.
...
Favour the builtin `command -v` instead.
2018-02-26 10:00:25 +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