Skip to content

Commit 1e8c998

Browse files
committed
Set conf config file for linters
1 parent 176fcde commit 1e8c998

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

conf/run_linters.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ externalIssueReport="$buildDir/external-issue-report.json"
3333

3434
echo "Running pylint"
3535
rm -f $pylintReport
36-
pylint --rcfile $CONFDIR/pylintrc ./*.py ./*/*.py -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" | tee $pylintReport
36+
pylint --rcfile $CONFDIR/pylintrc $ROOTDIR/*.py $ROOTDIR/*/*.py -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" | tee $pylintReport
3737
re=$?
3838
if [ "$re" == "32" ]; then
3939
>&2 echo "ERROR: pylint execution failed, errcode $re, aborting..."
@@ -43,11 +43,11 @@ fi
4343
echo "Running flake8"
4444
rm -f $flake8Report
4545
# See .flake8 file for settings
46-
flake8 . >$flake8Report
46+
flake8 --config "$CONFIG/.flake8" "$ROOTDIR" >$flake8Report
4747

4848
# echo "Running bandit"
4949
# rm -f $banditReport
5050
# bandit --exit-zero -f json --skip B311,B303,B101 -r . -x .vscode,./tests >$banditReport
5151

5252
echo "Running shellcheck"
53-
shellcheck ./*.sh ./*/*.sh -s bash -f json | ./shellcheck2sonar.py >$externalIssueReport
53+
shellcheck $ROOTDIR/*.sh $ROOTDIR/*/*.sh -s bash -f json | $CONFDIR/shellcheck2sonar.py >$externalIssueReport

0 commit comments

Comments
 (0)