Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Report: Add data
[csit.git]
/
resources
/
libraries
/
bash
/
entry
/
check
/
pylint.sh
diff --git
a/resources/libraries/bash/entry/check/pylint.sh
b/resources/libraries/bash/entry/check/pylint.sh
index
4d8c27d
..
fbfea47
100644
(file)
--- a/
resources/libraries/bash/entry/check/pylint.sh
+++ b/
resources/libraries/bash/entry/check/pylint.sh
@@
-19,7
+19,8
@@
set -exuo pipefail
# to dissuade non-tox callers.
# This script runs pylint and propagates its exit code.
# to dissuade non-tox callers.
# This script runs pylint and propagates its exit code.
-# Config is taken from pylint.cfg, and proper virtualenv is assumed to be active.
+# Config is taken from pylint.cfg,
+# and proper virtualenv is assumed to be active.
# The pylint output stored to pylint.log (overwriting).
# "set -eu" handles failures from the following two lines.
# The pylint output stored to pylint.log (overwriting).
# "set -eu" handles failures from the following two lines.
@@
-29,7
+30,7
@@
source "${BASH_FUNCTION_DIR}/common.sh" || {
echo "Source failed." >&2
exit 1
}
echo "Source failed." >&2
exit 1
}
-pylint_args=("--rcfile=pylint.cfg" "resources/" "GPL/")
+pylint_args=("--rcfile=pylint.cfg" "resources/" "GPL/
traffic_scripts
")
if pylint "${pylint_args[@]}" > "pylint.log"; then
warn
warn "Pylint checker: PASS"
if pylint "${pylint_args[@]}" > "pylint.log"; then
warn
warn "Pylint checker: PASS"