Skip to content

Commit 83d3abc

Browse files
author
Ales Kozumplik
committed
Better quoting in dnf_pylint.
1 parent b7e1d91 commit 83d3abc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/dnf_pylint

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ disable "-d R0903" # too few public methods
3030
disable "-d W0141" # used builtin 'map' function
3131
disable "-d W0142" # used star magic
3232

33-
VAR_NAMES=--variable-rgx='[a-z_][a-z0-9_]*$'
34-
VAR_NAMES+=" "--dummy-variables-rgx='_.*'
33+
VAR_NAMES='--variable-rgx=[a-z_][a-z0-9_]*$'
34+
DUMMY_NAMES='--dummy-variables-rgx=_.*'
3535
MISC=--max-line-length=82
3636

37-
pylint --rcfile=/dev/null --reports=n $DISABLED $VAR_NAMES $MISC $* \
37+
pylint --rcfile=/dev/null --reports=n $DISABLED "$VAR_NAMES" "$DUMMY_NAMES" $MISC $* \
3838
"$TEMPLATE" \
3939
| egrep -v -f $FALSE_POSITIVES

0 commit comments

Comments
 (0)