File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ export LC_ALL=C
1111if ! command -v vulture > /dev/null; then
1212 echo " Skipping Python dead code linting since vulture is not installed. Install by running \" pip3 install vulture\" "
1313 exit 0
14+ elif [ " ${BASH_VERSINFO:- 0} " -lt 4 ]; then
15+ echo " Skipping Python dead code linting since your bash version is less than 4."
16+ exit 0
1417fi
1518
1619# --min-confidence 100 will only report code that is guaranteed to be unused within the analyzed files.
Original file line number Diff line number Diff line change @@ -88,6 +88,9 @@ if ! command -v flake8 > /dev/null; then
8888elif PYTHONWARNINGS=" ignore" flake8 --version | grep -q " Python 2" ; then
8989 echo " Skipping Python linting since flake8 is running under Python 2. Install the Python 3 version of flake8."
9090 exit 0
91+ elif [ " ${BASH_VERSINFO:- 0} " -lt 4 ]; then
92+ echo " Skipping Python linting since your bash version is less than 4."
93+ exit 0
9194fi
9295
9396EXIT_CODE=0
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ EXIT_CODE=0
1818if ! command -v shellcheck > /dev/null; then
1919 echo " Skipping shell linting since shellcheck is not installed."
2020 exit $EXIT_CODE
21+ elif [ " ${BASH_VERSINFO:- 0} " -lt 4 ]; then
22+ echo " Skipping shell linting since your bash version is less than 4."
23+ exit $EXIT_CODE
2124fi
2225
2326SHELLCHECK_CMD=(shellcheck --external-sources --check-sourced --source-path=SCRIPTDIR)
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ export LC_ALL=C
1212if ! command -v codespell > /dev/null; then
1313 echo " Skipping spell check linting since codespell is not installed."
1414 exit 0
15+ elif [ " ${BASH_VERSINFO:- 0} " -lt 4 ]; then
16+ echo " Skipping spell check linting since your bash version is less than 4."
17+ exit 0
1518fi
1619
1720IGNORE_WORDS_FILE=test/lint/lint-spelling.ignore-words.txt
You can’t perform that action at this time.
0 commit comments