![]() ![]() These can be enabled with -o flags or enableĭirectives. list-optional Output a list of known optional checks. Subsequent -f options are ignored, see FORMATSīelow for more information. f FORMAT, -format=FORMAT Specify the output format of shellcheck, which prints its results in the ![]() Subsequent -e options are cumulative, but all the codes canīe specified at once, comma-separated as a single argument. e CODE1, -exclude=CODE1 Explicitly exclude the specified codes from the report. Include options override any provided exclude options. Subsequent -i options are cumulative, but all the codes canīe specified at once, comma-separated as a single argument. i CODE1, -include=CODE1 Explicitly include only the specified codes in the report. color without an argument is equivalent to C, -color For TTY output, enable colors always, never or With this option, any issues in sourced files will also be reported. Normally, shellcheck will only warn about issues in the OPTIONS -a, -check-sourced Emit warnings in sourced files. Supports decimals in arithmetic contexts. s ksh), ShellCheck will not warn at all, as ksh For scripts starting with #!/bin/ksh (or using.s bash), ShellCheck will warn that decimals are not For scripts starting with #!/bin/bash (or using.POSIX compliant (similar to checkbashisms). For scripts starting with #!/bin/sh (or when using.Level syntax errors and pitfalls where the shell just gives a crypticĮrror message or strange behavior, but it also reports on a few moreĪdvanced issues where corner cases can cause delayed failures.Ĭonsider this line: (( area = 3.14*r*r )) It's mainly focused on handling typical beginner and intermediate ShellCheck is a static analysis and linting tool for sh/bash scripts. Shellcheck - Shell script analysis tool SYNOPSIS Command to display shellcheck manual in Linux: $ man 1 shellcheck NAME ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |