mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 18:34:48 +00:00
pylint #R0917
This commit is contained in:
4
scripts/check-syntax.sh
vendored
4
scripts/check-syntax.sh
vendored
@@ -79,6 +79,7 @@ echo "checking dotdrop with pylint"
|
||||
# R0912: too-many-branches
|
||||
# R0911: too-many-return-statements
|
||||
# R0904: too-many-public-methods
|
||||
# R0917: too-many-positional-arguments
|
||||
pylint \
|
||||
--disable=R0902 \
|
||||
--disable=R0913 \
|
||||
@@ -88,6 +89,7 @@ pylint \
|
||||
--disable=R0912 \
|
||||
--disable=R0911 \
|
||||
--disable=R0904 \
|
||||
--disable=R0917 \
|
||||
dotdrop/
|
||||
|
||||
# check shell scripts
|
||||
@@ -130,4 +132,4 @@ exceptions="save_uservariables_name\|@@\|diff_cmd\|original,\|modified,"
|
||||
find dotdrop/ -iname '*.py' -exec grep --with-filename -n -v "f'" {} \; | grep -v "{'" | grep -v "${exceptions}" | grep "'.*}" && echo "bad string format (1)" && exit 1
|
||||
find dotdrop/ -iname '*.py' -exec grep --with-filename -n -v 'f"' {} \; | grep -v "f'" | grep -v '{"' | grep -v "${exceptions}" | grep '".*}' && echo "bad string format (2)" && exit 1
|
||||
|
||||
echo "syntax OK"
|
||||
echo "syntax OK"
|
||||
|
||||
Reference in New Issue
Block a user