From 247d5b8e4d088685a548cd5d825ac6561f03dab2 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Sat, 19 Feb 2022 17:17:40 +0000 Subject: development/ShellCheck-bin: Updated for version 0.8.0. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- development/ShellCheck-bin/shellcheck.1 | 244 ++++++++++++++++++++------------ 1 file changed, 154 insertions(+), 90 deletions(-) (limited to 'development/ShellCheck-bin/shellcheck.1') diff --git a/development/ShellCheck-bin/shellcheck.1 b/development/ShellCheck-bin/shellcheck.1 index b98de14a65d62..40f293225fa0c 100644 --- a/development/ShellCheck-bin/shellcheck.1 +++ b/development/ShellCheck-bin/shellcheck.1 @@ -1,17 +1,17 @@ -.\" Automatically generated by Pandoc 2.5 +.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "SHELLCHECK" "1" "" "Shell script analysis tool" "" .hy .SH NAME .PP -shellcheck \- Shell script analysis tool +shellcheck - Shell script analysis tool .SH SYNOPSIS .PP -\f[B]shellcheck\f[R] [\f[I]OPTIONS\f[R]\&...] \f[I]FILES\f[R]\&... +\f[B]shellcheck\f[R] [\f[I]OPTIONS\f[R]...] \f[I]FILES\f[R]... .SH DESCRIPTION .PP ShellCheck is a static analysis and linting tool for sh/bash scripts. -It\[cq]s mainly focused on handling typical beginner and intermediate +It\[aq]s mainly focused on handling typical beginner and intermediate level syntax errors and pitfalls where the shell just gives a cryptic error message or strange behavior, but it also reports on a few more advanced issues where corner cases can cause delayed failures. @@ -26,113 +26,119 @@ Consider this line: .fi .IP \[bu] 2 For scripts starting with \f[C]#!/bin/sh\f[R] (or when using -\f[C]\-s sh\f[R]), ShellCheck will warn that \f[C](( .. ))\f[R] is not +\f[C]-s sh\f[R]), ShellCheck will warn that \f[C](( .. ))\f[R] is not POSIX compliant (similar to checkbashisms). .IP \[bu] 2 For scripts starting with \f[C]#!/bin/bash\f[R] (or using -\f[C]\-s bash\f[R]), ShellCheck will warn that decimals are not +\f[C]-s bash\f[R]), ShellCheck will warn that decimals are not supported. .IP \[bu] 2 For scripts starting with \f[C]#!/bin/ksh\f[R] (or using -\f[C]\-s ksh\f[R]), ShellCheck will not warn at all, as \f[C]ksh\f[R] +\f[C]-s ksh\f[R]), ShellCheck will not warn at all, as \f[C]ksh\f[R] supports decimals in arithmetic contexts. .SH OPTIONS .TP -.B \f[B]\-a\f[R],\ \f[B]\[en]check\-sourced\f[R] +\f[B]-a\f[R],\ \f[B]--check-sourced\f[R] Emit warnings in sourced files. Normally, \f[C]shellcheck\f[R] will only warn about issues in the specified files. With this option, any issues in sourced files will also be reported. .TP -.B \f[B]\-C\f[R][\f[I]WHEN\f[R]],\ \f[B]\[en]color\f[R][=\f[I]WHEN\f[R]] +\f[B]-C\f[R][\f[I]WHEN\f[R]],\ \f[B]--color\f[R][=\f[I]WHEN\f[R]] For TTY output, enable colors \f[I]always\f[R], \f[I]never\f[R] or \f[I]auto\f[R]. The default is \f[I]auto\f[R]. -\f[B]\[en]color\f[R] without an argument is equivalent to -\f[B]\[en]color=always\f[R]. +\f[B]--color\f[R] without an argument is equivalent to +\f[B]--color=always\f[R]. .TP -.B \f[B]\-i\f[R]\ \f[I]CODE1\f[R][,\f[I]CODE2\f[R]\&...],\ \f[B]\[en]include=\f[R]\f[I]CODE1\f[R][,\f[I]CODE2\f[R]\&...] +\f[B]-i\f[R]\ \f[I]CODE1\f[R][,\f[I]CODE2\f[R]...],\ \f[B]--include=\f[R]\f[I]CODE1\f[R][,\f[I]CODE2\f[R]...] Explicitly include only the specified codes in the report. -Subsequent \f[B]\-i\f[R] options are cumulative, but all the codes can -be specified at once, comma\-separated as a single argument. +Subsequent \f[B]-i\f[R] options are cumulative, but all the codes can be +specified at once, comma-separated as a single argument. Include options override any provided exclude options. .TP -.B \f[B]\-e\f[R]\ \f[I]CODE1\f[R][,\f[I]CODE2\f[R]\&...],\ \f[B]\[en]exclude=\f[R]\f[I]CODE1\f[R][,\f[I]CODE2\f[R]\&...] +\f[B]-e\f[R]\ \f[I]CODE1\f[R][,\f[I]CODE2\f[R]...],\ \f[B]--exclude=\f[R]\f[I]CODE1\f[R][,\f[I]CODE2\f[R]...] Explicitly exclude the specified codes from the report. -Subsequent \f[B]\-e\f[R] options are cumulative, but all the codes can -be specified at once, comma\-separated as a single argument. +Subsequent \f[B]-e\f[R] options are cumulative, but all the codes can be +specified at once, comma-separated as a single argument. .TP -.B \f[B]\-f\f[R] \f[I]FORMAT\f[R], \f[B]\[en]format=\f[R]\f[I]FORMAT\f[R] +\f[B]-f\f[R] \f[I]FORMAT\f[R], \f[B]--format=\f[R]\f[I]FORMAT\f[R] Specify the output format of shellcheck, which prints its results in the standard output. -Subsequent \f[B]\-f\f[R] options are ignored, see \f[B]FORMATS\f[R] -below for more information. +Subsequent \f[B]-f\f[R] options are ignored, see \f[B]FORMATS\f[R] below +for more information. .TP -.B \f[B]\[en]list\-optional\f[R] +\f[B]--list-optional\f[R] Output a list of known optional checks. -These can be enabled with \f[B]\-o\f[R] flags or \f[B]enable\f[R] +These can be enabled with \f[B]-o\f[R] flags or \f[B]enable\f[R] directives. .TP -.B \f[B]\[en]norc\f[R] -Don\[cq]t try to look for .shellcheckrc configuration files. +\f[B]--norc\f[R] +Don\[aq]t try to look for .shellcheckrc configuration files. .TP -.B \f[B]\-o\f[R]\ \f[I]NAME1\f[R][,\f[I]NAME2\f[R]\&...],\ \f[B]\[en]enable=\f[R]\f[I]NAME1\f[R][,\f[I]NAME2\f[R]\&...] +\f[B]-o\f[R]\ \f[I]NAME1\f[R][,\f[I]NAME2\f[R]...],\ \f[B]--enable=\f[R]\f[I]NAME1\f[R][,\f[I]NAME2\f[R]...] Enable optional checks. The special name \f[I]all\f[R] enables all of them. -Subsequent \f[B]\-o\f[R] options accumulate. +Subsequent \f[B]-o\f[R] options accumulate. This is equivalent to specifying \f[B]enable\f[R] directives. .TP -.B \f[B]\-P\f[R]\ \f[I]SOURCEPATH\f[R],\ \f[B]\[en]source\-path=\f[R]\f[I]SOURCEPATH\f[R] +\f[B]-P\f[R]\ \f[I]SOURCEPATH\f[R],\ \f[B]--source-path=\f[R]\f[I]SOURCEPATH\f[R] Specify paths to search for sourced files, separated by \f[C]:\f[R] on Unix and \f[C];\f[R] on Windows. -This is equivalent to specifying \f[C]search\-path\f[R] directives. +This is equivalent to specifying \f[C]search-path\f[R] directives. .TP -.B \f[B]\-s\f[R]\ \f[I]shell\f[R],\ \f[B]\[en]shell=\f[R]\f[I]shell\f[R] +\f[B]-s\f[R]\ \f[I]shell\f[R],\ \f[B]--shell=\f[R]\f[I]shell\f[R] Specify Bourne shell dialect. Valid values are \f[I]sh\f[R], \f[I]bash\f[R], \f[I]dash\f[R] and \f[I]ksh\f[R]. -The default is to deduce the shell from the file\[cq]s \f[C]shell\f[R] +The default is to deduce the shell from the file\[aq]s \f[C]shell\f[R] directive, shebang, or \f[C].bash/.bats/.dash/.ksh\f[R] extension, in that order. -\f[I]sh\f[R] refers to POSIX \f[C]sh\f[R] (not the system\[cq]s), and +\f[I]sh\f[R] refers to POSIX \f[C]sh\f[R] (not the system\[aq]s), and will warn of portability issues. .TP -.B \f[B]\-S\f[R]\ \f[I]SEVERITY\f[R],\ \f[B]\[en]severity=\f[R]\f[I]severity\f[R] +\f[B]-S\f[R]\ \f[I]SEVERITY\f[R],\ \f[B]--severity=\f[R]\f[I]severity\f[R] Specify minimum severity of errors to consider. Valid values in order of severity are \f[I]error\f[R], \f[I]warning\f[R], \f[I]info\f[R] and \f[I]style\f[R]. The default is \f[I]style\f[R]. .TP -.B \f[B]\-V\f[R],\ \f[B]\[en]version\f[R] +\f[B]-V\f[R],\ \f[B]--version\f[R] Print version information and exit. .TP -.B \f[B]\-W\f[R] \f[I]NUM\f[R],\ \f[B]\[en]wiki\-link\-count=NUM\f[R] +\f[B]-W\f[R] \f[I]NUM\f[R],\ \f[B]--wiki-link-count=NUM\f[R] For TTY output, show \f[I]NUM\f[R] wiki links to more information about mentioned warnings. Set to 0 to disable them entirely. .TP -.B \f[B]\-x\f[R],\ \f[B]\[en]external\-sources\f[R] +\f[B]-x\f[R],\ \f[B]--external-sources\f[R] Follow \f[C]source\f[R] statements even when the file is not specified as input. By default, \f[C]shellcheck\f[R] will only follow files specified on the command line (plus \f[C]/dev/null\f[R]). This option allows following any file the script may \f[C]source\f[R]. +.RS +.PP +This option may also be enabled using \f[C]external-sources=true\f[R] in +\f[C].shellcheckrc\f[R]. +This flag takes precedence. +.RE .TP -.B \f[B]FILES\&...\f[R] -One or more script files to check, or \[lq]\-\[rq] for standard input. +\f[B]FILES...\f[R] +One or more script files to check, or \[dq]-\[dq] for standard input. .SH FORMATS .TP -.B \f[B]tty\f[R] +\f[B]tty\f[R] Plain text, human readable output. This is the default. .TP -.B \f[B]gcc\f[R] +\f[B]gcc\f[R] GCC compatible output. Useful for editors that support compiling and showing syntax errors. .RS .PP For example, in Vim, -\f[C]:set makeprg=shellcheck\[rs] \-f\[rs] gcc\[rs] %\f[R] will allow +\f[C]:set makeprg=shellcheck\[rs] -f\[rs] gcc\[rs] %\f[R] will allow using \f[C]:make\f[R] to check the script, and \f[C]:cnext\f[R] to jump to the next error. .IP @@ -143,7 +149,7 @@ to the next error. .fi .RE .TP -.B \f[B]checkstyle\f[R] +\f[B]checkstyle\f[R] Checkstyle compatible XML output. Supported directly or through plugins by many IDEs and build monitoring systems. @@ -151,7 +157,7 @@ systems. .IP .nf \f[C] - +