Commit Graph

  • 962fad038c Avoid a zip that breaks fusion Joseph C. Sible 2020-02-09 22:02:11 -05:00
  • a223a7a5a5 Remove unnecessary fromMaybes Joseph C. Sible 2020-02-09 21:50:40 -05:00
  • 8e9290badb Do toLower earlier Joseph C. Sible 2020-02-09 21:40:05 -05:00
  • 292b0840d9 Simplify a double negative Joseph C. Sible 2020-02-09 21:39:02 -05:00
  • 43c24cf79c Use Map.! instead of reimplementing it Joseph C. Sible 2020-02-09 21:14:52 -05:00
  • 21ad4196db Simplify findFunction Joseph C. Sible 2020-02-09 21:08:32 -05:00
  • 172aa7c4fc Avoid unnecessary use of when and unless Joseph C. Sible 2020-02-09 20:55:49 -05:00
  • c290eace54 Inline an uncurry Joseph C. Sible 2020-02-09 20:51:41 -05:00
  • a6efd02807 Simplify <> for SpaceStatus Joseph C. Sible 2020-02-09 20:45:05 -05:00
  • 057cc714b3 Simplify matchToken Joseph C. Sible 2020-02-09 20:36:14 -05:00
  • 0e00249eae Use void instead of do and return () Joseph C. Sible 2020-02-09 20:22:06 -05:00
  • 0ca50159ec Use head instead of reimplementing it Joseph C. Sible 2020-02-09 20:12:57 -05:00
  • 7e6a556ef1 Get rid of potentially Joseph C. Sible 2020-02-09 20:10:09 -05:00
  • 4bfe6496d9 Simplify check and checkTranslatedStringVariable Joseph C. Sible 2020-02-09 20:09:25 -05:00
  • ffbbfcfe25 Use mapM_ and sequence_ instead of reimplementing them Joseph C. Sible 2020-02-09 19:53:18 -05:00
  • cc424bac11 Use find instead of take 1 and filter Joseph C. Sible 2020-02-09 19:40:57 -05:00
  • cb01cbf7eb Use mapM instead of implementing a slower version of it Joseph C. Sible 2020-02-09 19:33:36 -05:00
  • 1e32139f66 Replace mapMaybe and concatMap with list comprehensions Joseph C. Sible 2020-02-09 19:18:43 -05:00
  • 4d92a2e15c Add getLiteralStringDef and simplify with it Joseph C. Sible 2020-02-09 21:36:38 -05:00
  • f8648e5465 Switch getLiteralStringExt to Identity where it can never be Nothing Joseph C. Sible 2020-02-09 21:26:42 -05:00
  • 4fd8de058b Remove more unnecessary uses of fromJust Joseph C. Sible 2020-02-08 23:48:36 -05:00
  • aaffe38198 Use the Identity monad to avoid unnecessary uses of fromJust Joseph C. Sible 2020-02-08 23:06:57 -05:00
  • bd116f252b Use findM instead of filterM Joseph C. Sible 2020-02-08 22:55:45 -05:00
  • ef51ed3950
    Simplify literalEquals Joseph C. Sible 2020-02-08 14:09:17 -05:00
  • 61b073d507 Merge pull request #1817 from furkanpham/master Vidar Holen 2020-02-08 10:48:37 -08:00
  • 9d604ae732
    Merge pull request #1822 from yetamrra/arrayindex Vidar Holen 2020-02-08 10:48:07 -08:00
  • 1ca0b72329
    Merge pull request #1816 from josephcsible/cleanups Vidar Holen 2020-02-08 10:38:27 -08:00
  • 474b23d6e7 SC2191: Tighten index checks Benjamin Gordon 2020-02-05 16:25:18 -07:00
  • fe2b4b5079 Fix pre-compiled binary URL for aarch64 Furkan Pham 2020-02-03 13:00:10 +01:00
  • e820a5642b Adjust a pattern to get rid of a fromJust Joseph C. Sible 2020-02-02 00:34:54 -05:00
  • 392b57b8e8 Use maybe instead of isJust and fromJust Joseph C. Sible 2020-02-02 00:27:05 -05:00
  • 6595e14d25 Adjust a pattern to avoid tail Joseph C. Sible 2020-02-02 00:22:52 -05:00
  • 115ef29079 Use pattern matching instead of head Joseph C. Sible 2020-02-02 00:13:16 -05:00
  • 76b798394f Use case matching instead of null Joseph C. Sible 2020-02-01 23:07:16 -05:00
  • 8a005526cc Use drop instead of splitAt since we only use the second half Joseph C. Sible 2020-02-01 23:02:10 -05:00
  • c29b6afa56 Use null instead of comparing with empty lists Joseph C. Sible 2020-02-01 22:50:21 -05:00
  • e6e89d68fd Use list comprehensions instead of clunky combinations of map and filter Joseph C. Sible 2020-02-01 22:50:20 -05:00
  • f25b8bd03a Use gets instead of fmapping the result of get Joseph C. Sible 2020-02-01 22:50:20 -05:00
  • d7278b95f2 Remove unnecessary "map snd" Joseph C. Sible 2020-02-01 22:50:19 -05:00
  • 5487b3f229 Use sortOn instead of sortBy and comparing Joseph C. Sible 2020-02-01 22:50:18 -05:00
  • 28978a8b65 Use maybe instead of fromMaybe and fmap Joseph C. Sible 2020-02-01 22:50:17 -05:00
  • f5c6771016 Use find instead of listToMaybe and filter Joseph C. Sible 2020-02-01 22:50:16 -05:00
  • 0f48bb78a5 Remove incorrect otherwise Joseph C. Sible 2020-02-01 22:50:14 -05:00
  • 93be86f988 Use "drop 1" instead of clumsily rewriting it Joseph C. Sible 2020-02-01 22:50:14 -05:00
  • 3449e6be21 Get rid of our getOpt, as it already exists as lookup Joseph C. Sible 2020-02-01 22:50:13 -05:00
  • 2e52c2b56a Use notElem instead of not on the result of elem Joseph C. Sible 2020-02-01 22:50:11 -05:00
  • 1696296c0a Make SC2141 trigger more broadly Vidar Holen 2020-02-01 16:51:40 -08:00
  • a82e606e8d Don't trigger SC2154 (unassigned var) in -n/-z expressions #1583 Peter Gromov 2020-01-31 14:49:25 +01:00
  • 93486ed6ac SC2016: disable for mumps -run %XCMD and LOOP%XCMD Marcin Szydelski 2020-01-21 12:43:27 +01:00
  • 499e0ceaba
    Add multi-architecture Docker image build Artur Klauser 2019-12-27 07:49:06 +01:00
  • ff5f29f661
    Merge pull request #1784 from ArturKlauser/travis-warnings Vidar Holen 2020-01-05 12:53:42 -08:00
  • c7bf1fd96e
    Merge pull request #1783 from ArturKlauser/fix-osx-travis-build Vidar Holen 2020-01-05 12:53:28 -08:00
  • b96b7f35f4
    Fix Travis warnings Artur Klauser 2019-12-28 09:29:05 +01:00
  • 926ee54036
    Fix OSX build on Travis Artur Klauser 2019-12-28 09:51:11 +01:00
  • fdd02c94c0 Issue 1759 mapfile and process substition Gandalf- 2019-12-22 23:11:20 -08:00
  • 9008a6833b
    Merge pull request #1711 from renatoassis01/master Vidar Holen 2019-12-21 18:53:16 -08:00
  • ce60a1764f Merge branch 'jabberabbe-iss1724-builtin-support' Vidar Holen 2019-12-21 18:50:52 -08:00
  • cbcca528ae Merge branch 'iss1724-builtin-support' of https://github.com/jabberabbe/shellcheck into jabberabbe-iss1724-builtin-support Vidar Holen 2019-12-21 18:13:07 -08:00
  • 83187dafd7 Added a unit test for parsing shell keyword case branches Vidar Holen 2019-12-21 17:59:09 -08:00
  • d919aaa847 Merge branch 'Gandalf--issue_1731_case_pattern_literals' Vidar Holen 2019-12-21 17:56:26 -08:00
  • 3f296a08c1 Issue 1731 Literals in case patterns Gandalf- 2019-12-18 20:23:48 -08:00
  • 0f15fa49ba Make SC2230 optional Vidar Holen 2019-12-07 16:06:34 -08:00
  • 0a4580e234 Mention that ShellCheck is now compatible with Cabal 3 Vidar Holen 2019-12-07 16:08:44 -08:00
  • 5c7d8129ad Try to search for binary on macOS/Cabal3 Vidar Holen 2019-11-18 17:12:25 -08:00
  • e075cde357 Revert docker image to 18.04 since ld fails on later versions Vidar Holen 2019-11-16 11:46:58 -08:00
  • 9f578f41a1 Explicitly add 'mappend' for old GHC versions Vidar Holen 2019-11-16 11:16:15 -08:00
  • 2c026f1ec7 Support Cabal 3. Man page no longer autobuilds. Vidar Holen 2019-11-16 10:44:48 -08:00
  • 874bdcb514
    Merge pull request #1728 from mgttlinger/patch-1 Vidar Holen 2019-11-15 21:03:01 -08:00
  • fa3eb47193
    Merge pull request #1716 from ryantig/ryantig-patch-1 Vidar Holen 2019-11-15 21:01:24 -08:00
  • 989ac32625
    Merge pull request #1734 from gabrielelana/braced-regular-for Vidar Holen 2019-11-15 20:59:51 -08:00
  • 2bbfd0570d
    Merge pull request #1735 from gabrielelana/quoted-heredoc Vidar Holen 2019-11-15 20:27:10 -08:00
  • 9b1befadc1 Update brew before building on macOS due to incompatible Ruby Vidar Holen 2019-11-15 09:26:01 -08:00
  • f44624a9c0 Hide <> from Writer to not conflict with Semigroup Vidar Holen 2019-11-14 20:02:25 -08:00
  • c75bbcbd60 Include missing Semigroup import Vidar Holen 2019-11-13 22:09:52 -08:00
  • daa9c08dd5
    Merge pull request #1749 from lvjp/simple-docker-build Vidar Holen 2019-11-13 22:04:14 -08:00
  • 4da34fbc64 Merge branch 'translatedVars' Vidar Holen 2019-11-13 21:48:53 -08:00
  • 4a63a3a8bd For SC2256, make sure the complete string is a variable name Vidar Holen 2019-11-13 19:53:55 -08:00
  • 2341a4c683 SC2256: Check for translated strings matching known variables Benjamin Gordon 2019-11-13 15:50:21 -07:00
  • 7eb6b35cb0 Make image build process a bit simpler Laurent VERDOÏA 2019-11-09 10:26:59 +01:00
  • 93eca1cb8e Only trigger SC1014 when command is a complete word (fixes #1737) Vidar Holen 2019-11-03 13:25:46 -08:00
  • e701cf6fad Warn about [ x -ot y ] in POSIX mode Vidar Holen 2019-11-03 13:25:35 -08:00
  • 5962b01816 Correctly handle empty variables for SC2086 (fixes #1722) Vidar Holen 2019-11-03 12:45:13 -08:00
  • 5becc673b2 Modify CHANGELOG.md Tito Sacchi 2019-11-01 14:36:15 +01:00
  • 84ca7711c4 Make command-specific checks act on builtin ... Tito Sacchi 2019-11-01 14:28:00 +01:00
  • 0e0de94045 Fix issue #1724 Tito Sacchi 2019-10-31 17:34:10 +01:00
  • 699aac589a Support for heredoc quoted token like '"FOO" gabriele.lana 2019-10-26 17:36:32 +02:00
  • 30c75340e6 Parse regular for with body in curly braces gabriele.lana 2019-10-26 15:41:46 +02:00
  • 4dfd7eb1cf Use single quotes for the format string example in SC2059 Vidar Holen 2019-10-24 10:33:17 -07:00
  • 79ba67dbd3
    Nix install instructions Merlin Göttlinger 2019-10-21 08:04:59 +02:00
  • 60f75e5b8a Warn about unexpected characters after ]/]] (fixes #1680) Vidar Holen 2019-10-13 20:26:40 -07:00
  • f042b0ebd1 Merge branch 'iboss-ptk-read-t-0' Vidar Holen 2019-10-12 20:55:32 -07:00
  • 764fdcb260 Move failing test to correct check Vidar Holen 2019-10-12 20:48:22 -07:00
  • 7473d4a743 Make read -t 0 test more forgiving towards other flags Vidar Holen 2019-10-12 20:45:36 -07:00
  • 91abd979f2 Merge branch 'read-t-0' of https://github.com/iboss-ptk/shellcheck into iboss-ptk-read-t-0 Vidar Holen 2019-10-12 20:23:13 -07:00
  • afea62de4e Suggest using $((..)) in [ 2*3 -eq 6 ] (fixes #1641) Vidar Holen 2019-10-12 19:55:20 -07:00
  • fa0f88c106
    Update README.md ryantig 2019-10-04 11:11:21 -07:00
  • 7fb399528c Allow read -t 0 to not require -r flag Supanat Pothivarakorn 2019-10-02 22:34:43 +07:00
  • de9ab4e6ef Fix glob range duplicate warning in [!!] (fixes #1706) Vidar Holen 2019-09-28 14:03:11 -07:00
  • ff1eab286c
    add github Renato Assis 2019-09-25 19:20:25 -03:00
  • e01c470598 Suggest quoting case patterns, as for SC2053 (fixes #1682) Vidar Holen 2019-09-08 20:06:06 -07:00