Vidar Holen
f44624a9c0
Hide <> from Writer to not conflict with Semigroup
2019-11-14 20:02:25 -08:00
Vidar Holen
c75bbcbd60
Include missing Semigroup import
2019-11-13 22:10:27 -08:00
Vidar Holen
daa9c08dd5
Merge pull request #1749 from lvjp/simple-docker-build
...
Make image build process a bit simpler
2019-11-13 22:04:14 -08:00
Vidar Holen
4da34fbc64
Merge branch 'translatedVars'
2019-11-13 21:48:53 -08:00
Vidar Holen
4a63a3a8bd
For SC2256, make sure the complete string is a variable name
2019-11-13 21:48:01 -08:00
Benjamin Gordon
2341a4c683
SC2256: Check for translated strings matching known variables
...
SC2247 already warns about translated strings that look like $"(foo)" or
$"{foo}". Since typical use of translated strings is to translate whole
messages, a string like $"foo" is likely to be a similar mistake if foo
is the name of an existing variable. Conversely, a string like
$"foo bar" is potentially meant to be a message id even if foo is a
known variable.
Add a warning for the $"foo" case, but make it separate from the
existing warning so that projects that reuse variable names as their
message ids can separately disable the new warning.
2019-11-13 16:41:16 -07:00
Laurent VERDOÏA
7eb6b35cb0
Make image build process a bit simpler
...
Take full leverage of multi-stage docker build.
2019-11-09 10:26:59 +01:00
Vidar Holen
93eca1cb8e
Only trigger SC1014 when command is a complete word ( fixes #1737 )
2019-11-03 13:26:23 -08:00
Vidar Holen
e701cf6fad
Warn about [ x -ot y ] in POSIX mode
2019-11-03 13:25:35 -08:00
Vidar Holen
5962b01816
Correctly handle empty variables for SC2086 ( fixes #1722 )
2019-11-03 12:46:25 -08:00
Tito Sacchi
5becc673b2
Modify CHANGELOG.md
2019-11-01 14:36:15 +01:00
Tito Sacchi
84ca7711c4
Make command-specific checks act on `builtin ...`
...
Now if shellchecks encounters a command like `builtin cmd ...`
it applies the same check that would be applied to `cmd ...`.
2019-11-01 14:28:00 +01:00
Tito Sacchi
0e0de94045
Fix issue #1724
...
(bash: missing support for 'builtin' keyword)
Now shellcheck looks for the arguments to 'builtin' to determine
read/written variables. A change in the parser makes sure that
assignments are parsed correctly in commands that start with 'builtin'.
2019-11-01 13:49:17 +01:00
gabriele.lana
699aac589a
Support for heredoc quoted token like `'"FOO"`
...
Fixes #1650
2019-10-26 17:36:32 +02:00
gabriele.lana
30c75340e6
Parse regular `for` with body in curly braces
...
Fixes #1694
2019-10-26 15:41:46 +02:00
Vidar Holen
4dfd7eb1cf
Use single quotes for the format string example in SC2059
2019-10-24 10:33:17 -07:00
Merlin Göttlinger
79ba67dbd3
Nix install instructions
2019-10-21 08:04:59 +02:00
Vidar Holen
60f75e5b8a
Warn about unexpected characters after ]/]] ( fixes #1680 )
2019-10-13 20:26:40 -07:00
Vidar Holen
f042b0ebd1
Merge branch 'iboss-ptk-read-t-0'
2019-10-12 20:55:32 -07:00
Vidar Holen
764fdcb260
Move failing test to correct check
2019-10-12 20:50:55 -07:00
Vidar Holen
7473d4a743
Make `read -t 0` test more forgiving towards other flags
2019-10-12 20:45:36 -07:00
Vidar Holen
91abd979f2
Merge branch 'read-t-0' of https://github.com/iboss-ptk/shellcheck into iboss-ptk-read-t-0
2019-10-12 20:23:13 -07:00
Vidar Holen
afea62de4e
Suggest using `$((..))` in `[ 2*3 -eq 6 ]` ( fixes #1641 )
2019-10-12 19:55:20 -07:00
ryantig
fa0f88c106
Update README.md
...
Repair link to #installing-a-pre-compiled-binary (was pointing to #installing-the-shellcheck-binary)
2019-10-04 11:11:21 -07:00
Supanat Pothivarakorn
7fb399528c
Allow `read -t 0` to not require -r flag
...
since it has specific purpose for checking only
2019-10-02 22:34:43 +07:00
Vidar Holen
de9ab4e6ef
Fix glob range duplicate warning in [!!] ( fixes #1706 )
2019-09-28 14:03:11 -07:00
Renato Assis
ff1eab286c
add github
2019-09-25 19:20:25 -03:00
Vidar Holen
e01c470598
Suggest quoting case patterns, as for SC2053 ( fixes #1682 )
2019-09-08 20:08:43 -07:00
Glen Mailer
9423691039
Mention the CircleCI shellcheck orb in the README.
2019-08-12 22:24:47 +01:00
Vidar Holen
71a4053e8c
Remove _cleanup now that builds don't run in sequence
2019-07-31 21:32:13 -07:00
Vidar Holen
3fdc6babb2
Update TravisCI config for new winghc docker image
2019-07-31 21:16:36 -07:00
Vidar Holen
c175971bf0
Make `-f diff` stop saying it found more issues when it didn't.
2019-07-28 20:50:50 -07:00
Vidar Holen
b7b4d5d29e
Stable version 0.7.0
...
This release is dedicated to RetroArch: the second best way to make your
PC feel like a 16bit system (right after building ShellCheck with GHC)
2019-07-28 18:12:25 -07:00
Vidar Holen
9cc9a575b2
Tweak man page
2019-07-28 18:12:25 -07:00
Vidar Holen
b2dd00e4ee
Mention aarch64 and macOS binaries in CHANGELOG
2019-07-28 17:26:31 -07:00
Vidar Holen
2053ac8882
Add a release checklist script
2019-07-28 17:25:30 -07:00
Vidar Holen
e4cbf59fda
Update distrotest with new image names
2019-07-28 17:10:20 -07:00
Vidar Holen
f9c8a255be
Set up Travis build matrix
2019-07-24 22:23:47 -07:00
Vidar Holen
bfb2d79e54
Merge branch 'master' of github.com:koalaman/shellcheck
2019-07-24 22:00:57 -07:00
Vidar Holen
fbb571811f
Merge branch 'Luizm-master'
2019-07-24 21:41:24 -07:00
Vidar Holen
0eaef95db8
THIS COMMIT WILL BE FORCE PUSHED AWAY (Help I'm not good with computers)
2019-07-24 21:20:27 -07:00
Vidar Holen
f4deac6e43
Merge branch 'master' of https://github.com/Luizm/shellcheck into Luizm-master
2019-07-24 21:02:00 -07:00
Vidar Holen
49aa600c85
Merge pull request #1639 from shak-mar/master
...
Fix syntax and indentation in shellcheck.1.md
2019-07-24 20:55:03 -07:00
Vidar Holen
25b5b77240
Add automated linux-aarch64 build
2019-07-24 20:03:23 -07:00
LuizMuller
ded04820b8
Merge branch 'master' into master
2019-07-24 15:28:03 -03:00
Luizm
7a1fb2523d
Add support to compiling a binary for macOS
2019-07-24 14:33:03 -03:00
Vidar Holen
38bb156a1c
Warn about $_ in POSIX sh ( fixes #1647 )
2019-07-21 21:22:16 -07:00
Vidar Holen
023ae5dfda
Don't warn about printf '%()T' without corresponding argument
2019-07-20 15:10:41 -07:00
shak-mar
e280116ef0
Fix syntax and indentation in shellcheck.1.md
...
Out of interest, I ran the command
pandoc -s -f markdown-smart -t man shellcheck.1.md -o shellcheck.1
locally, but that produces warnings (previous to this commit). Checking
the generated manpage, I found the diff to be rendered very badly.
(Broken at terminal width like a normal paragraph). This commit fixes
the problem.
2019-07-12 16:52:39 +02:00
Vidar Holen
788cf17076
Fix bad advice for SC2251 ( fixes #1588 )
2019-07-04 19:10:14 -07:00