提交 333c3e4a 编写于 作者: L Lukáš Doktor

travis: Include W0102 check

To avoid having W0102 (dangerous default arguments) enable W0102 in
`make check`.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 ca80f2d7
......@@ -111,9 +111,9 @@ results_dir_content() {
[ "$SKIP_RESULTSDIR_CHECK" ] || RESULTS_DIR_CONTENT="$(ls $RESULTS_DIR 2> /dev/null)"
if [ "$TRAVIS" == "true" ]; then
run_rc lint 'RESULT=$(mktemp); inspekt lint --exclude=.git &>$RESULT || { cat $RESULT; rm $RESULT; exit -1; }; rm $RESULT'
run_rc lint 'RESULT=$(mktemp); inspekt lint --exclude=.git --enable W0102,W0611 &>$RESULT || { cat $RESULT; rm $RESULT; exit -1; }; rm $RESULT'
else
run_rc lint 'inspekt lint --exclude=.git'
run_rc lint 'inspekt lint --exclude=.git --enable W0102,W0611'
fi
run_rc indent 'inspekt indent --exclude=.git'
run_rc style 'inspekt style --exclude=.git --disable E501,E265,W601,E402,E722'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册