![]() i CODE1, -include= CODE1Įxplicitly include only the specified codes in the report. color without an argument is equivalent to -color=always. C, -colorįor TTY output, enable colors always, never or auto. With this option, any issues in sourced files will also be reported. Normally, shellcheck will only warn about issues in the specified files. For scripts starting with #!/bin/ksh (or using -s ksh), ShellCheck will not warn at all, as ksh supports decimals in arithmetic contexts.Įmit warnings in sourced files.For scripts starting with #!/bin/bash (or using -s bash), ShellCheck will warn that decimals are not supported.)) is not POSIX compliant (similar to checkbashisms). For scripts starting with #!/bin/sh (or when using -s sh), ShellCheck will warn that ((.It'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. ShellCheck is a static analysis and linting tool for sh/bash scripts. List all available optional checks that are disabled by default: shellcheck -list-optional.Enable one or more optional checks: shellcheck -enable= add-default-case|avoid-nullary-conditions. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |