Commit graph

  • d3fc1f355d Merge branch 'master' of github.com:koalaman/shellcheck Vidar Holen 2015-10-31 13:36:52 -07:00
  • 48fd793581 Update getFlag function to also return non-flags. Vidar Holen 2015-10-27 22:07:29 -07:00
  • e5842e2e2b Merge pull request #516 from Fusl/patch-01 koalaman 2015-10-22 13:59:50 -07:00
  • cf445c7d20 Fix typo "zyper" -> "zypper" Fusl 2015-10-21 11:29:01 +02:00
  • ffb9578a98 Support parsing quoted test operators, and also warn about unicode dashes. Vidar Holen 2015-10-17 16:33:21 -07:00
  • 630f20e888 Count ~/ as dynamic for resolving source paths. Vidar Holen 2015-10-17 10:50:07 -07:00
  • 8f5f91f041 Warn about ]] with no corresponding [[. Vidar Holen 2015-10-17 10:31:14 -07:00
  • 8d9d4533c3 Don't trigger constant checks for -ot/-ef/-nt Vidar Holen 2015-10-17 09:28:29 -07:00
  • a4b4954a23 Merge pull request #512 from mimi1vx/opensuse-docu koalaman 2015-10-17 09:10:12 -07:00
  • 38cea9201d install instructions for openSUSE Ondřej Súkup 2015-09-23 09:21:29 +02:00
  • 41fbbccc3a Merge d814e19391 into 4ce916ec1d Ondřej Súkup 2015-10-15 00:57:56 +00:00
  • 4ce916ec1d Include bash builtin arrays in SC2128. Vidar Holen 2015-10-14 12:31:09 -07:00
  • b9cb040128 Account for dereferencing for numerical ops in [[ ]]. Vidar Holen 2015-10-14 11:11:17 -07:00
  • 2488be7298 Don't warn about undefined HOSTNAME if it's being assigned. Vidar Holen 2015-10-14 09:21:21 -07:00
  • d01b59a827 Don't warn about empty assignments when at end of command. Vidar Holen 2015-10-13 12:16:39 -07:00
  • f77821625c Add dash as a first class supported shell. Vidar Holen 2015-10-13 11:37:50 -07:00
  • 1eece5b2ee Add warning about local in sh or not in bash functions. Vidar Holen 2015-10-10 20:48:52 -07:00
  • 58d45e3fa4 Warn about non-posix %q and flags for printf. Vidar Holen 2015-10-10 20:14:17 -07:00
  • 5aaa1a7d9a Split SC2165 messages into separate codes (2167). Vidar Holen 2015-10-10 19:26:14 -07:00
  • 3b36c2c820 Document exit codes in man page. Vidar Holen 2015-10-10 19:19:38 -07:00
  • 55692926b9 Don't consider {} and {a} brace expansions. Vidar Holen 2015-10-03 21:12:28 -07:00
  • 4172722167 Don't warn about quoted rhs of =~ when not a regex. Vidar Holen 2015-10-03 15:21:57 -07:00
  • 485593da2c Don't warn about disrespected quotes in ${#var}. Vidar Holen 2015-10-01 18:56:45 -07:00
  • 1181c6b3af Warn about ${!var} in POSIX mode. Vidar Holen 2015-10-01 18:34:09 -07:00
  • ee181cfc43 Don't warn about comparisons when redirecting stderr for test. Vidar Holen 2015-10-01 18:19:47 -07:00
  • c72667407b Merge branch 'master' of github.com:koalaman/shellcheck Vidar Holen 2015-09-28 18:53:51 -07:00
  • 5467a0f1d9 Account for set -o errexit and #!/bin/bash -e for unchecked cd. Vidar Holen 2015-09-28 18:52:03 -07:00
  • 3fc77d94ec Warn about [ -n foo ] when foo is entirely constant. Vidar Holen 2015-09-28 18:46:32 -07:00
  • d814e19391 install instructions for openSUSE Ondřej Súkup 2015-09-23 09:21:29 +02:00
  • 23e0420cb1 Merge pull request #469 from spartacus06/fedora-readme koalaman 2015-09-21 08:29:44 -07:00
  • a898165ac7 Add Fedora install procedure to README.md Seth Jennings 2015-09-21 09:12:19 -05:00
  • ba5e3db31a Stable version 0.4.1 v0.4.1 Vidar Holen 2015-09-05 19:32:37 -07:00
  • 56145217fe Fixed the cabal file, which didn't include formatters :| Vidar Holen 2015-09-05 19:17:22 -07:00
  • 94d265ce41 Stable version 0.4.0 v0.4.0 Vidar Holen 2015-09-05 16:28:44 -07:00
  • 0f00de80fd Support {n}>&1 named file descriptors. Vidar Holen 2015-09-05 09:48:34 -07:00
  • c808c9b6fe End here doc tokens on < and >. Vidar Holen 2015-09-03 20:58:21 -07:00
  • bf9297e2a5 Parse ksh ${ ..; } expansions. Vidar Holen 2015-09-03 20:26:02 -07:00
  • 7f547cc0ec Warn when using unescaped parens in eval. Vidar Holen 2015-09-02 21:11:39 -07:00
  • 01c27dc96a Parse double arithmetic negation, i.e. (( !!a )); Vidar Holen 2015-09-02 19:31:22 -07:00
  • 856a204ec3 Merge pull request #446 from mbeniamino/master koalaman 2015-08-23 10:01:22 -07:00
  • f054e2e2cc Added FlexibleContexts extension in Parser.hs to fix compilation. Matteo Beniamino 2015-08-23 10:55:18 +02:00
  • 090e09e4ca Support nested trinary expressions. Vidar Holen 2015-08-22 14:20:20 -07:00
  • 10276c878d Don't consider ${!os*} reference of 'os' Vidar Holen 2015-08-22 13:55:17 -07:00
  • ae4aea4530 Adds support for a SHELLCHECK_OPTS environment variable. Vidar Holen 2015-08-22 13:15:10 -07:00
  • d0029ae1d4 Ignore === in assignments, and add a special warning 1097 for ==. Vidar Holen 2015-08-22 12:20:03 -07:00
  • eea7bc326e Improved parsing error expected messages. Vidar Holen 2015-08-22 11:06:49 -07:00
  • 73cd2cdd6f Also warn about missing 'then' before 'else' Vidar Holen 2015-08-19 20:27:14 -07:00
  • a01862bc12 Adds a #shellcheck source=file directive to override source statements. Vidar Holen 2015-08-19 19:09:55 -07:00
  • ccb6bf1ed5 Don't warn about uuoc for cat -n and similar. Vidar Holen 2015-08-16 18:26:38 -07:00
  • 136b654867 Update man page with info for -x. Vidar Holen 2015-08-16 18:20:08 -07:00
  • f31c8bd3a3 Preliminary support for sourced files. Vidar Holen 2015-08-16 17:18:51 -07:00
  • 0dd61b65d8 Moved the various AST convenience functions to a separate module. Vidar Holen 2015-08-16 12:53:23 -07:00
  • 07747b30fb Warn about undefined behavior of test -a and -o. Vidar Holen 2015-08-15 22:42:06 -07:00
  • 26d16eb8ad Avoid new 2129 warnings when disabling the first one. Vidar Holen 2015-08-15 14:23:45 -07:00
  • 54b2d14847 Stop 2164 and 2103 about 'cd foo || exit' from overlapping. Vidar Holen 2015-08-15 14:10:40 -07:00
  • f653362b18 Warn about bashism [^bar]. Vidar Holen 2015-08-15 13:50:09 -07:00
  • f85441add9 Removed unused pragma. Vidar Holen 2015-08-15 13:25:34 -07:00
  • 67cfcfd206 Separated formatters into multiple files. Vidar Holen 2015-08-15 12:51:13 -07:00
  • 72eeafe002 Some cleanup to make room for future improvements. Vidar Holen 2015-08-15 09:34:19 -07:00
  • bb51a84f63 utils/webcheck.sh: Add a security note Ky-Anh Huynh 2015-08-06 23:59:59 +07:00
  • 979a65ddb0 utils/webcheck.sh: only check for Perl stuff *once* Ky-Anh Huynh 2015-08-06 23:50:13 +07:00
  • a419593501 utils/webcheck.sh: Check script using web tool (http://shellcheck.net/) Ky-Anh Huynh 2015-08-06 23:47:03 +07:00
  • 6d9e8472e6 Less confusing message for SC2140 Vidar Holen 2015-08-02 19:55:47 -07:00
  • 47d68019e5 Fixed exit status for missing files. Vidar Holen 2015-08-02 19:13:01 -07:00
  • cbda90eeb5 Warn about zero-width spaces. Vidar Holen 2015-07-25 13:59:00 -07:00
  • 722b0606e8 Merge pull request #416 from chadbrewbaker/master koalaman 2015-07-23 12:26:59 -07:00
  • 95cfd87589 cleanup Chad Brewbaker 2015-07-23 12:51:38 -05:00
  • 0a1beb883f Don't warn about unquoted :+ expansions. Vidar Holen 2015-07-19 12:28:31 -07:00
  • 83adcba88e Warn when nested loops have conflicting variable names. Vidar Holen 2015-07-19 11:30:57 -07:00
  • 35fb5073f4 Fixed cd foo; bar; cd -; check not trigger on top level Vidar Holen 2015-07-18 19:58:09 -07:00
  • de59c3586b Warn about 'cd' when not used as part of a conditional Vidar Holen 2015-07-18 19:37:58 -07:00
  • 8894333556 Warn about 'export $foo' Vidar Holen 2015-07-18 13:23:36 -07:00
  • 401f07031d Merge b15a00458a into b1843c520f Etan Reisner 2015-07-18 19:30:24 +00:00
  • b1843c520f Warn when using read without -r Vidar Holen 2015-07-18 12:30:08 -07:00
  • d406ba9950 Special case messages for [ true ] and false/0/1 Vidar Holen 2015-07-18 11:47:28 -07:00
  • d5dfb4a7c1 Add a .ghci file to allow running ghci without cabal repl Vidar Holen 2015-07-18 11:09:11 -07:00
  • 7929a9dbba Makes literal check work for args to -z and -n Vidar Holen 2015-07-18 11:08:42 -07:00
  • 7e84ad031f Warn about [ foo ] when "foo" is non-constant with constant parts. Vidar Holen 2015-07-18 09:56:58 -07:00
  • 7eef12102b Make 2077 point to the = in [ foo=bar ] Vidar Holen 2015-07-18 09:22:52 -07:00
  • 0522a5f0bd Allow escaped linefeeds to break lines in $(()) Vidar Holen 2015-07-15 09:01:29 -07:00
  • 6c21e4671b Added bug reporting info to README.md. Vidar Holen 2015-06-30 20:12:38 -07:00
  • 3d83b87c9a Added copyright notice to individual source files. Vidar Holen 2015-06-30 19:21:12 -07:00
  • f86d68bcc0 Fixed incorrectly documented flag syntax for -V. Vidar Holen 2015-06-30 19:10:41 -07:00
  • 1e65d36874 Included copyright information in the man page. Vidar Holen 2015-06-30 19:07:08 -07:00
  • 1ff67a61b4 Stable version 0.3.8. Now GPLv3! v0.3.8 Vidar Holen 2015-06-20 10:17:48 -07:00
  • 349dfdab35 Relicense from AGPL v3 to GPL v3. Vidar Holen 2015-06-20 09:52:07 -07:00
  • 1ab29ddb39 Made SC2082 indirection message more sh friendly. Vidar Holen 2015-06-14 17:20:52 -07:00
  • 09b7788412 Don't consider declare -Ffp assignments. Vidar Holen 2015-06-14 16:51:18 -07:00
  • ef2135f3aa Don't warn about unpassed parameters if used in child functions. Vidar Holen 2015-06-14 16:14:05 -07:00
  • d10c3b2709 Don't warn about 2>&1 > foo if piping or capturing. Vidar Holen 2015-06-14 15:39:44 -07:00
  • ca37794b7c Allow empty scripts, $()s and <()s. Also improves related error messages. Vidar Holen 2015-06-14 14:30:11 -07:00
  • 8b8b48ef55 Make quoted tilde message suggest $HOME instead. Vidar Holen 2015-06-14 10:24:40 -07:00
  • aea0310a07 Added install instructions for native Windows Vidar Holen 2015-06-14 10:16:32 -07:00
  • 7fff088ce9 Don't output ansi escape codes on Windows Vidar Holen 2015-06-07 18:08:23 -07:00
  • 65ab8c8ecb Account for brace expansion in SC2115 (catastrophic rm). Vidar Holen 2015-06-07 13:02:49 -07:00
  • 3a041954d1 Don't warn about a&&b||c if c == printf Vidar Holen 2015-05-24 12:41:54 -07:00
  • 828378cdff Warn about injecting filenames into sh -c strings with find. Vidar Holen 2015-05-23 13:03:07 -07:00
  • 509cda4dcf Count mapfile/readarray as variable assignment Vidar Holen 2015-05-10 13:13:42 -07:00
  • 6076f0b1da Parse variables and subexpressions in brace expansions Vidar Holen 2015-05-10 12:49:50 -07:00
  • 1d26c280d6 Warn when failing to quote here strings. Vidar Holen 2015-05-09 12:12:11 -07:00