Debian Codegraph @

scripts/dnf_pylint

raw symbols SCIP
1 #!/usr/bin/bashscip-shell filesystem . . `/usr/bin/bash`.
2
3 TEMP=`getoptscip-shell system . . getopt. -o s -n dnf_pylint -- "$@"`
4
5 [[ $? -eq 0 ]] || exit 1;
6 eval set -- "$TEMP"
7
8 TEMPLATE=--msg-template='{msg_id}: {module}:{line:3d},{column}: {msg}'
9 while truescip-shell system . . true. ; do
10 case "$1" in
11 -s) TEMPLATE=--msg-template='{msg_id}: {module}: {msg}'; shift ;;
12 --) shift ; break ;;
13 esac
14 done
15
16 THIS_DIR=$(readlinkscip-shell system . . readlink. -f $(dirnamescip-shell system . . dirname. $0))
17 FALSE_POSITIVES=$THIS_DIR/pylint_false_positives
18 DISABLED=""
19
20 function disablescip-shell shell dnf 4.24.0-1 disable().()
21 {
22 DISABLED="$DISABLED $1"
23 }
24
25 disablescip-shell shell dnf 4.24.0-1 disable(). "-d C0111" # docstrings
26 disablescip-shell shell dnf 4.24.0-1 disable(). "-d I0011" # locally disabled warnings
27 disablescip-shell shell dnf 4.24.0-1 disable(). "-d R0801" # similar lines
28 disablescip-shell shell dnf 4.24.0-1 disable(). "-d R0904" # too many public methods
29 disablescip-shell shell dnf 4.24.0-1 disable(). "-d R0911" # too many return statements
30 disablescip-shell shell dnf 4.24.0-1 disable(). "-d R0912" # too many branches
31 disablescip-shell shell dnf 4.24.0-1 disable(). "-d R0913" # too many arguments
32 disablescip-shell shell dnf 4.24.0-1 disable(). "-d R0903" # too few public methods
33 disablescip-shell shell dnf 4.24.0-1 disable(). "-d W0141" # used builtin 'map' function
34 disablescip-shell shell dnf 4.24.0-1 disable(). "-d W0142" # used star magic
35 disablescip-shell shell dnf 4.24.0-1 disable(). "-d W0212" # access to a protected member
36
37 VAR_NAMES='--variable-rgx=[a-z_][a-z0-9_]*$'
38 DUMMY_NAMES='--dummy-variables-rgx=_.*'
39 MISC=--max-line-length=82
40
41 pylint --rcfile=/dev/null --reports=n $DISABLED "$VAR_NAMES" "$DUMMY_NAMES" $MISC $* \
42 "$TEMPLATE" \
43 | egrepscip-shell system . . egrep. -v -f $FALSE_POSITIVES