tests/tools/check_source.sh
changeset 1879 4d81c3bcac82
parent 1878 fb73a6b6622d
child 1881 091005ec69c4
equal deleted inserted replaced
1878:fb73a6b6622d 1879:4d81c3bcac82
   204     disable=$disable,W0122        # (exec-used) Use of exec
   204     disable=$disable,W0122        # (exec-used) Use of exec
   205     disable=$disable,W0123        # (eval-used) Use of eval
   205     disable=$disable,W0123        # (eval-used) Use of eval
   206     disable=$disable,I0011        # (locally-disabled) Locally disabling ungrouped-imports (C0412)
   206     disable=$disable,I0011        # (locally-disabled) Locally disabling ungrouped-imports (C0412)
   207     disable=$disable,R0204        # (redefined-variable-type) Redefinition of current type from X to Y
   207     disable=$disable,R0204        # (redefined-variable-type) Redefinition of current type from X to Y
   208     disable=$disable,R0201        # (no-self-use) Method could be a function
   208     disable=$disable,R0201        # (no-self-use) Method could be a function
       
   209     disable=$disable,W0221        # (arguments-differ) Arguments number differs from overridden 'X' method
       
   210     disable=$disable,C0201        # (consider-iterating-dictionary) Consider iterating the dictionary directly instead of calling .keys()
   209 
   211 
   210     # It'd be nice to fix warnings below some day
   212     # It'd be nice to fix warnings below some day
   211     disable=$disable,C0111        # missing-docstring
   213     disable=$disable,C0111        # missing-docstring
   212     disable=$disable,W0703        # broad-except
   214     disable=$disable,W0703        # broad-except
   213     disable=$disable,C0301        # Line too long
   215     disable=$disable,C0301        # Line too long
   223     disable=$disable,R0914        # (too-many-locals) Too many local variables (18/15)
   225     disable=$disable,R0914        # (too-many-locals) Too many local variables (18/15)
   224     disable=$disable,R0915        # (too-many-statements) Too many statements (57/50)
   226     disable=$disable,R0915        # (too-many-statements) Too many statements (57/50)
   225     disable=$disable,R0916        # (too-many-boolean-expressions) Too many boolean expressions in if statement (6/5)
   227     disable=$disable,R0916        # (too-many-boolean-expressions) Too many boolean expressions in if statement (6/5)
   226     disable=$disable,R0101        # (too-many-nested-blocks) Too many nested blocks (7/5)
   228     disable=$disable,R0101        # (too-many-nested-blocks) Too many nested blocks (7/5)
   227     disable=$disable,R0801        # (duplicate-code) Similar lines in N files
   229     disable=$disable,R0801        # (duplicate-code) Similar lines in N files
       
   230 
   228 
   231 
   229     enable=
   232     enable=
   230     enable=$enable,E1601          # print statement used
   233     enable=$enable,E1601          # print statement used
   231     enable=$enable,C0325          # (superfluous-parens) Unnecessary parens after keyword    
   234     enable=$enable,C0325          # (superfluous-parens) Unnecessary parens after keyword    
   232     enable=$enable,W0404          # reimported module    
   235     enable=$enable,W0404          # reimported module    
   266     enable=$enable,W0233          # (non-parent-init-called) __init__ method from a non direct base class 'X' is called
   269     enable=$enable,W0233          # (non-parent-init-called) __init__ method from a non direct base class 'X' is called
   267     enable=$enable,W0601          # (global-variable-undefined) Global variable 'X' undefined at the module level
   270     enable=$enable,W0601          # (global-variable-undefined) Global variable 'X' undefined at the module level
   268     enable=$enable,W0623          # (redefine-in-handler) Redefining name 'X' from outer scope (line Y) in exception handler
   271     enable=$enable,W0623          # (redefine-in-handler) Redefining name 'X' from outer scope (line Y) in exception handler
   269     enable=$enable,W0106          # (expression-not-assigned) Expression "X" is assigned to nothing
   272     enable=$enable,W0106          # (expression-not-assigned) Expression "X" is assigned to nothing
   270     enable=$enable,C0330          # (bad-continuation) Wrong hanging indentation before block
   273     enable=$enable,C0330          # (bad-continuation) Wrong hanging indentation before block
       
   274     enable=$enable,E1136          # (unsubscriptable-object) Value 'X' is unsubscriptable
   271     # enable=
   275     # enable=
   272 
   276 
   273     options=
   277     options=
   274     options="$options --rcfile=.pylint"
   278     options="$options --rcfile=.pylint"
   275     # options="$options --py3k"   # report errors for Python 3 porting
   279     # options="$options --py3k"   # report errors for Python 3 porting