mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 18:20:57 -05:00
200f699c15
Shellcheck supports a `--external-sources` option that allows directives like the follow to pass linting. ``` # shellcheck source=SCRIPTDIR/some/source/script.sh` source "$(dirname "${BASH_SOURCE[0]}")/some/source/script.sh" ``` Without this option, we will see lots of spurious errors from shellcheck like the following. ``` # shellcheck source=SCRIPTDIR/some/source/script.sh` source "$(dirname "${BASH_SOURCE[0]}")/some/source/script.sh" ^-- SC1091: Not following: SCRIPTDIR/some/source/script.sh: openBinaryFile: does not exist (No such file or directory) ``` It looks like it [may be possible](https://github.com/koalaman/shellcheck/issues/1818) to include this option in a future version of shellcheck through the .shellcheckrc configuration file, given that this issue is resolved, and that super-linter supports .shellcheckrc as a configuration file for shellcheck. |
||
---|---|---|
.. | ||
buildFileList.sh | ||
linter.sh | ||
log.sh | ||
possum.sh | ||
README.md | ||
validation.sh | ||
worker.sh |
Super-Linter Library
Main script
The file linter.sh
is the main script that is called for the process and loads all other scripts as functions.
Functions
The additional files in the folder are functions to help streamline the main build process and allow for easier maintenance.
possum.sh
- Official mascot of the Super-Linter
buildFileList.sh
- Functions to help find files that were modified, or need to be scanned
validation.sh
- Logic to see what linters are enabled
worker.sh
- Calls to the various linters and the test cases for each