Skip to content

Commit 02da476

Browse files
committed
Move all config in conf
1 parent 838ac11 commit 02da476

13 files changed

+6
-53
lines changed

.sonarcloud.properties

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

run_linters.sh renamed to conf/run_linters.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
#
2121

22-
buildDir="build"
22+
ME="$( basename "${BASH_SOURCE[0]}" )"
23+
ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
24+
CONFDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
25+
26+
buildDir="$ROOTDIR/build"
2327
pylintReport="$buildDir/pylint-report.out"
2428
# banditReport="$buildDir/bandit-report.json"
2529
flake8Report="$buildDir/flake8-report.out"
@@ -29,7 +33,7 @@ externalIssueReport="$buildDir/external-issue-report.json"
2933

3034
echo "Running pylint"
3135
rm -f $pylintReport
32-
pylint ./*.py ./*/*.py -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" | tee $pylintReport
36+
pylint --rcfile $CONFDIR/pylintrc ./*.py ./*/*.py -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" | tee $pylintReport
3337
re=$?
3438
if [ "$re" == "32" ]; then
3539
>&2 echo "ERROR: pylint execution failed, errcode $re, aborting..."
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)