Commit graph

  • fd595d1058 Only trigger SC2316 on unquoted words. Vidar Holen 2022-05-06 10:06:12 -07:00
  • 7c44e1060f Merge branch 'patrickxia-master' Vidar Holen 2022-05-06 09:50:08 -07:00
  • 2821552688 Fix bug in 2126 when using after/before flags with grep Rune Juhl Jacobsen 2021-12-14 16:00:47 +01:00
  • 2034e3886e
    Merge pull request #2414 from runejuhl/fix-grep-after-before Vidar Holen 2022-05-06 09:15:04 -07:00
  • 3b47de3f81 Add check for function redeclaration (SC2216) Artyom Belousov 2022-01-01 21:59:52 +03:00
  • fa15c0a454 add SC2316: error on multiple declarations like 'readonly local' Patrick Xia 2022-05-05 16:09:02 -07:00
  • a455b9e805 fix issue 2450 ipv6 warning Weigang Geng 2022-02-15 23:56:34 -08:00
  • 88cdb4e2c9 Warn about spaces around = in alias (fixes #2442) Vidar Holen 2022-02-03 19:23:46 -08:00
  • 2292e852e5 Switch linux-x86_64 build from Ubuntu to Alpine for musl Vidar Holen 2022-01-23 14:23:56 -08:00
  • ade2bf7b87 Allow parsing [[ x = ["$y"] ]] (fixes #2165) Vidar Holen 2022-01-09 16:50:50 -08:00
  • e6e558946c Improve decoding of single quoted literals (fixes #2418) Vidar Holen 2021-12-21 14:07:46 -08:00
  • 3a118246ef
    Fix bug in 2126 when using after/before flags with grep Rune Juhl Jacobsen 2021-12-14 16:00:47 +01:00
  • dd626686c4
    Merge pull request #2375 from scop/spelling Vidar Holen 2021-12-05 14:27:08 -08:00
  • 866cbd0aa4 Merge branch 'tmp' Vidar Holen 2021-12-04 17:37:25 -08:00
  • d7971dafd1 Minor formatting fixes Vidar Holen 2021-12-04 17:37:12 -08:00
  • 94d5dd76ae Add --exit-zero option to exit with 0 in case of shell errors or warnings Pierre Kancir 2021-11-26 22:57:52 +01:00
  • 9092080a84 bats: Add check for useless negation (SC2314/15) Martin Schulze 2021-11-15 11:49:36 +01:00
  • 499c99372e Rewrite SC2032 warning and mention line number (fixes #2353) Vidar Holen 2021-11-14 21:34:21 -08:00
  • d9a9d5db86 Mark prefix/postfix inc/dec as integers (fixes #2376) Vidar Holen 2021-11-14 16:39:32 -08:00
  • c5de58ae84 Comment spelling fixes Ville Skyttä 2021-11-13 12:50:53 +02:00
  • 4c186c20b9 Post-release CHANGELOG update Vidar Holen 2021-11-06 23:18:19 -07:00
  • e5ad4cf420 Stable version 0.8.0 v0.8.0 Vidar Holen 2021-11-06 19:08:58 -07:00
  • eea823e3d0 Fix bad version on stable releases Vidar Holen 2021-11-06 22:05:19 -07:00
  • 3b6972fbf1 Update copyright years Vidar Holen 2021-11-06 19:07:34 -07:00
  • 14a38b94cc Update stack resolver Vidar Holen 2021-11-06 18:59:24 -07:00
  • 71f1db6609 Update distro tests Vidar Holen 2021-11-06 18:21:11 -07:00
  • bcca66eb6b Update release checklist Vidar Holen 2021-11-06 15:46:19 -07:00
  • 8db220ae43 Include local -r in check-extra-masked-returns (fixes #2362) Vidar Holen 2021-11-06 15:37:59 -07:00
  • 273ee802af Update error numbers and split into diffirent numbers Martin Schulze 2021-11-06 08:24:11 +01:00
  • efd49e486f Consider all forms of TA_Assignment to remove spaces (fixes #2364) Vidar Holen 2021-10-30 17:47:30 -07:00
  • b0817ca404 bats: Add check for useless negation (SC2293) Martin Schulze 2021-10-25 17:26:34 +02:00
  • 0dd5c67bdf Warn about [^..] in Dash (fixes #2361) Vidar Holen 2021-10-21 20:58:14 -07:00
  • 290fc8b945 Have quickscripts search for relevant paths (fixes #2286) Vidar Holen 2021-10-15 18:03:05 -07:00
  • 7b2092b3cd Give more examples of what ShellCheck looks for Vidar Holen 2021-10-15 15:29:52 -07:00
  • 788aee1b7c Treat typeset similar to declare (fixes #2354) Vidar Holen 2021-10-15 14:39:30 -07:00
  • 0d128dd918 Mention known incompatibilities in man page Vidar Holen 2021-10-15 12:06:33 -07:00
  • ba5c415942
    Allow specifying color= in shellcheckrc (closes #2350) Olliver Schinagl 2021-10-07 21:33:00 +02:00
  • c3aaa27540 Skip SC2214 if variable is modified in loop (fixes #2351) Vidar Holen 2021-10-09 12:13:41 -07:00
  • 3aedda766d For while getopts; do case .. checks, make sure variable matches Vidar Holen 2021-10-09 11:40:52 -07:00
  • 205ba429b3 Warn about read foo[i] expanding as glob (fixes #2345) Vidar Holen 2021-10-07 18:50:44 -07:00
  • 05bdeae3ab Mention require-double-brackets in CHANGELOG Vidar Holen 2021-10-07 17:26:08 -07:00
  • 38251abe26 Add suggestion level in text for TTY output (fixes #2339) Vidar Holen 2021-10-07 17:14:41 -07:00
  • 6f7eee4a27 Mention check-extra-masked-returns in changelog Vidar Holen 2021-10-02 12:58:28 -07:00
  • 23cddb037e
    Merge pull request #2320 from DoxasticFox/set-e-proc-sub Vidar Holen 2021-10-02 12:52:59 -07:00
  • 093df8cb24 Add extra checks for masked return codes Christian Nassif-Haynes 2021-09-06 05:52:34 +10:00
  • fac97a5301 Don't emit SC2140 when trapped string is /, = or : (fixes #2334) Vidar Holen 2021-09-25 20:23:58 -07:00
  • ad92cb4112 Disable UUOC for cat with unquoted variable (fixes #2333) Vidar Holen 2021-09-25 19:46:27 -07:00
  • 3a296cd788 The removed check was SC1004, not SC1003 Vidar Holen 2021-09-19 12:27:16 -07:00
  • db4701d8b5 Add a setgitversion script to update the version string with git Vidar Holen 2021-09-18 19:32:12 -07:00
  • e7df718724 Strip lines containing "STRIP" from ./striptests Vidar Holen 2021-09-18 19:22:46 -07:00
  • b044f5b23a Don't trigger SC2140 on ${x+"a" "b"} (fixes #2265) Vidar Holen 2021-09-18 18:49:58 -07:00
  • 8012f6761d Suppress SC2094 when both are input redirections (fixes #2325) Vidar Holen 2021-09-18 17:59:30 -07:00
  • 2536507060 Remove SC1004 (fixes #2326) Vidar Holen 2021-09-18 17:43:55 -07:00
  • 09aa15c9b7 Allow disable=all to disable all warnings (fixes #2323) Vidar Holen 2021-09-18 12:50:01 -07:00
  • 9a54e91195
    Merge pull request #2318 from FabianWolff/grep-lL-wc-l Vidar Holen 2021-09-16 19:40:40 -07:00
  • 4e703e5c61 Allow specifying external-sources=true in shellcheckrc (fixes #1818) Vidar Holen 2021-09-15 18:02:37 -07:00
  • 64733cc110
    Merge pull request #2303 from DoxasticFox/set-e-functions Vidar Holen 2021-09-04 17:06:24 -04:00
  • dc9032fca5 Show info about set -e suppression during function calls Christian Nassif-Haynes 2021-08-23 03:27:40 +10:00
  • 40216487d6 Do not suggest grep -c as a replacement for grep -l/-L | wc -l Fabian Wolff 2021-09-02 17:47:06 +02:00
  • 0efaeee04a My First Commit karlfroldan 2021-09-02 23:30:28 +08:00
  • 747bd8fd6a Warn about strings for numerical operators in [[ ]] (fixes #2312) Vidar Holen 2021-08-30 19:50:00 -07:00
  • f5fd9c2fed Improve warnings about unnecessary subshells (fixes #2169) Vidar Holen 2021-08-30 10:56:55 -07:00
  • 10817533d6 Add shellcheck-precommit hook to README.md Vidar Holen 2021-08-29 17:08:09 -07:00
  • b5da99c6b0 Add pre-commit instructions Vidar Holen 2021-08-29 12:28:58 -07:00
  • b0f05018c1 Revert "Allow running this repo as a pre-commit hook" Vidar Holen 2021-08-29 12:12:08 -07:00
  • 9d64d78c32 Allow running this repo as a pre-commit hook Vidar Holen 2021-08-28 21:19:45 -07:00
  • 081f7eba24 Fix parsing of [$var] (fixes #2309) Vidar Holen 2021-08-26 23:05:14 -07:00
  • ecacc2e9bb
    Merge pull request #2307 from a1346054/fixes Vidar Holen 2021-08-26 19:46:16 -07:00
  • 81b7ee5598 Don't warn about unused variables starting with _ (fixes #1498) Vidar Holen 2021-08-26 19:40:21 -07:00
  • c85ce2cb06 Add rg to list of commands ignored for SC2016 (fixes #2209) Vidar Holen 2021-08-26 18:50:40 -07:00
  • 98c7934c46 Remove trailing whitespace a1346054 2021-08-25 16:17:56 +00:00
  • 7384cec3f6 Fix redirect in LICENSE file a1346054 2021-08-25 14:15:36 +00:00
  • 5b6fd60279 Improve warnings for expr (fixes #2033) Vidar Holen 2021-08-22 11:55:01 -07:00
  • da7b28213e Recognize wait -p as assigning a variable (fixes #2179) Vidar Holen 2021-08-17 21:53:27 -07:00
  • c61fc7546e Don't warn about variables guarded with :+ (fixes #2296) Vidar Holen 2021-08-17 14:14:05 -07:00
  • 8c0bf8d41f Warn about looping over array values and using them as keys Vidar Holen 2021-08-17 12:50:40 -07:00
  • bb0a571a1e Improve warnings for bad parameter expansion (fixes #2297) Vidar Holen 2021-08-16 20:56:51 -07:00
  • fed4a048bc Suppress SC2167 when name is "_" (fixes #2298) Vidar Holen 2021-08-13 23:11:20 -07:00
  • e5745568e8 Extend warnings about spaces around = to 'let' Vidar Holen 2021-08-08 15:48:50 -07:00
  • 4dd762253f Remove defunct SonarQube plugin link (fixes #2292) Vidar Holen 2021-08-03 13:52:06 -07:00
  • 378c9a2f2c
    Switch build status badge from TravisCI to GitHub Vidar Holen 2021-08-03 13:45:09 -07:00
  • cf8066c07c SC2295 Warn about unquoted variables in PE patterns (fixes #2290) Vidar Holen 2021-08-03 12:54:03 -07:00
  • 9b61506e0b
    Merge pull request #2289 from nafigator/master Vidar Holen 2021-08-03 10:13:55 -07:00
  • 2f61b17518
    Review fixes in README Yancharuk Alexander 2021-08-02 19:09:24 +03:00
  • b939f86331
    Minor changes in README Yancharuk Alexander 2021-07-31 06:24:20 +03:00
  • a44f3edb14 Warn about eval'ing arrays Vidar Holen 2021-07-30 18:46:19 -07:00
  • e33146d530 Avoid trigger SC2181 on composite $? checks (fixes #1167) Vidar Holen 2021-07-29 20:51:19 -07:00
  • fe81dc1c27 Optionally suggest [[ over [ in Bash scripts (-o require-double-brackets) (fixes #887) Vidar Holen 2021-07-27 18:53:30 -07:00
  • fbc8d2cb2f Don't consider [ -n/-z/-v $var ] assignments for subshell modification (fixes #2217) Vidar Holen 2021-07-26 20:48:47 -07:00
  • c471e45822 Allow printf/return/assignments after exec (fixes #2249) Vidar Holen 2021-07-26 19:32:33 -07:00
  • 754ab22d94 Warn about unquoted blanks in echo (fixes #377) Vidar Holen 2021-07-26 18:29:55 -07:00
  • 4956b006ac Fix broken test from previous commit Vidar Holen 2021-07-25 19:56:51 -07:00
  • 02e07625d1 Warn about quoting in assignments to sh declaration utilities (fixes #1556) Vidar Holen 2021-07-25 19:27:35 -07:00
  • 44471b73cc Have SC2155 trigger on 'typeset' as well (fixes #2262) Vidar Holen 2021-07-25 17:31:13 -07:00
  • 364c33395e Don't print colors when $TERM is 'dumb' or unset (fixes #2260) Vidar Holen 2021-07-25 14:41:49 -07:00
  • 0d58337cdd Don't warn about repeated range in [[ -v arr[xxx] ]] (fixes #2285) Vidar Holen 2021-07-25 12:59:56 -07:00
  • 9eb63c97e6 Re-add warnings about 'declare var = value' (fixes #2279) Vidar Holen 2021-07-24 13:07:05 -07:00
  • 8be60028ef Don't warn when line starts with &> (fixes #2281) Vidar Holen 2021-07-22 19:25:48 -07:00
  • 9b077e28cb Add :/. to chars recognized for \alias suppression (fixes #2287) Vidar Holen 2021-07-21 16:44:21 -07:00
  • 99f6554c9b SC2181: Add '!' in suggestion as appropriate (fixes #2189) Vidar Holen 2021-07-18 16:59:45 -07:00