X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Fentry%2Fcheck%2Fpylint.sh;h=fbfea4773e73567bab21d0038f6826e5dc004d77;hp=a3cad9a0d777ad7c2dd871d75bc7e0af8cb4e981;hb=6da5a6920171682bd5bf6a77517bedfef91cbd0e;hpb=694b418272e9d7670ac69d477ed731bb7445b65a diff --git a/resources/libraries/bash/entry/check/pylint.sh b/resources/libraries/bash/entry/check/pylint.sh index a3cad9a0d7..fbfea4773e 100644 --- a/resources/libraries/bash/entry/check/pylint.sh +++ b/resources/libraries/bash/entry/check/pylint.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -19,7 +19,8 @@ set -exuo pipefail # 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. @@ -29,7 +30,7 @@ source "${BASH_FUNCTION_DIR}/common.sh" || { echo "Source failed." >&2 exit 1 } -pylint_args=("--rcfile=pylint.cfg" "resources/" "tests/") +pylint_args=("--rcfile=pylint.cfg" "resources/" "GPL/traffic_scripts") if pylint "${pylint_args[@]}" > "pylint.log"; then warn warn "Pylint checker: PASS"