@@ -85,47 +85,47 @@ if grep -qIR crobinso tests --exclude pylint\* ; then
8585fi
8686
8787DMSG=" "
88- addmsg () {
88+ skipmsg () {
8989 DMSG=" ${DMSG} ,$1 "
9090 }
9191
9292DCHECKERS=" "
93- addchecker () {
93+ skipchecker () {
9494 DCHECKERS=" ${DCHECKERS} ,$1 "
9595}
9696
97- addmsg_support () {
97+ skipmsg_checksupport () {
9898 out=` pylint --list-msgs 2>&1 `
9999 if ` echo $out | grep -q $1 ` ; then
100100 echo " adding!"
101- addmsg " $1 "
101+ skipmsg " $1 "
102102 fi
103103}
104104
105105# Disabled Messages:
106- addmsg " C0103" # C0103: Name doesn't match some style regex
107- addmsg " C0111" # C0111: No docstring
108- addmsg " C0301" # C0301: Line too long
109- addmsg " C0302" # C0302: Too many lines in module
110- addmsg " W0105" # W0105: String statement has no effect (annoying for docs)
111- addmsg " W0141" # W0141: Complaining about 'map' and 'filter'
112- addmsg " W0142" # W0142: Use of * or **
113- addmsg " W0603" # W0603: Using the global statement
114- addmsg " W0703" # W0703: Catch 'Exception'
115- addmsg " W0704" # W0704: Exception doesn't do anything
116- addmsg " W0702" # W0702: No exception type specified
117- addmsg " R0201" # R0201: Method could be a function
118- addchecker " Design" # Things like "Too many func arguments",
106+ skipmsg " C0103" # C0103: Name doesn't match some style regex
107+ skipmsg " C0111" # C0111: No docstring
108+ skipmsg " C0301" # C0301: Line too long
109+ skipmsg " C0302" # C0302: Too many lines in module
110+ skipmsg " W0105" # W0105: String statement has no effect (annoying for docs)
111+ skipmsg " W0141" # W0141: Complaining about 'map' and 'filter'
112+ skipmsg " W0142" # W0142: Use of * or **
113+ skipmsg " W0603" # W0603: Using the global statement
114+ skipmsg " W0703" # W0703: Catch 'Exception'
115+ skipmsg " W0704" # W0704: Exception doesn't do anything
116+ skipmsg " W0702" # W0702: No exception type specified
117+ skipmsg " R0201" # R0201: Method could be a function
118+ skipchecker " Design" # Things like "Too many func arguments",
119119 # "Too man public methods"
120120
121121# Possibly useful at some point
122- addmsg " W0403" # W0403: Relative imports
123- addmsg " W0511" # W0511: FIXME and XXX: messages
124- addmsg " R0401" # R0401: Cyclic imports
125- addchecker " Similarities" # Finds duplicate code
122+ skipmsg " W0403" # W0403: Relative imports
123+ skipmsg " W0511" # W0511: FIXME and XXX: messages
124+ skipmsg " R0401" # R0401: Cyclic imports
125+ skipchecker " Similarities" # Finds duplicate code
126126
127127# Not supported in many pylint versions
128- # Put new messages here with addmsg_support
128+ # Put new messages here with skipmsg_checksupport
129129
130130
131131AWK=awk
0 commit comments