scripts/pylint/pylintrc
changeset 2071 0aa24d8655ac
parent 1616 e7be52fec71c
child 2282 47a7eb2704c2
equal deleted inserted replaced
2070:9555be8634a3 2071:0aa24d8655ac
    64 # R0201: Method could be a function. Used when a method doesn't use its bound instance, and so 
    64 # R0201: Method could be a function. Used when a method doesn't use its bound instance, and so 
    65 #        could be written as a function.
    65 #        could be written as a function.
    66 # R0801: Similar lines in %s files. Indicates that a set of similar lines has been detected 
    66 # R0801: Similar lines in %s files. Indicates that a set of similar lines has been detected 
    67 #        among multiple file. This usually means that the code should be refactored to avoid this
    67 #        among multiple file. This usually means that the code should be refactored to avoid this
    68 #        duplication.
    68 #        duplication.
    69 disable-msg=W0613,W0622,W0232,W0142,W0102,W0212,R0201,R0801
    69 # E1103: %s %r has no %r member (but some types could not be inferred) Used when a variable is 
       
    70 #        accessed for an unexistant member, but astng was not able to interpret all possible 
       
    71 #        types of this variable.
       
    72 # E1101: %s %r has no %r member Used when a variable is accessed for an unexistant member.
       
    73 # C0302: Too many lines in module (%s) Used when a module has too much lines, reducing 
       
    74 #        its readibility.
       
    75 # W0602: Using global for %r but no assigment is done Used when a variable is defined through 
       
    76 #        the "global" statement but no assigment to this variable is done.
       
    77 # W0603: Using the global statement Used when you use the "global" statement to update 
       
    78 #        a global variable. PyLint just try to discourage this usage. That doesn't mean 
       
    79 #        you can not use it !
       
    80 # W0704: Except doesn't do anything Used when an except clause does nothing but "pass" 
       
    81 #        and there is no "else" clause.
       
    82 # I0011: Locally disabling %s Used when an inline option disable a message or a messages category.
       
    83 disable-msg=W0613,W0622,W0232,W0142,W0102,W0212,R0201,R0801,E1103,E1101,C0302,W0602,W0603,W0704,I0011
    70 
    84 
    71 
    85 
    72 [REPORTS]
    86 [REPORTS]
    73 
    87 
    74 # set the output format. Available formats are text, parseable, colorized, msvs
    88 # set the output format. Available formats are text, parseable, colorized, msvs
   128 
   142 
   129 # Regular expression which should only match correct module level names
   143 # Regular expression which should only match correct module level names
   130 const-rgx=(([A-Z_][A-Z1-9_]*)|(__.*__)|([a-z_][a-z0-9_]*))$
   144 const-rgx=(([A-Z_][A-Z1-9_]*)|(__.*__)|([a-z_][a-z0-9_]*))$
   131 
   145 
   132 # Regular expression which should only match correct class names
   146 # Regular expression which should only match correct class names
   133 class-rgx=[A-Z_][a-zA-Z0-9]+$
   147 class-rgx=[a-zA-Z0-9]+$
   134 
   148 
   135 # Regular expression which should only match correct function names
   149 # Regular expression which should only match correct function names
   136 function-rgx=[a-z_][a-zA-Z0-9_]{2,40}$
   150 function-rgx=[a-z_][a-zA-Z0-9_]{2,40}$
   137 
   151 
   138 # Regular expression which should only match correct method names
   152 # Regular expression which should only match correct method names
   139 method-rgx=[a-z_][a-zA-Z0-9_]{2,40}$
   153 method-rgx=[a-z_][a-zA-Z0-9_]{2,40}$
   140 
   154 
   141 # Regular expression which should only match correct instance attribute names
   155 # Regular expression which should only match correct instance attribute names
   142 attr-rgx=[a-z_][a-z0-9_]{2,30}$
   156 attr-rgx=[a-z_][a-z0-9_]{1,30}$
   143 #alternative
   157 #alternative
   144 #attr-rgx=([a-z_][a-z0-9_]{2,30}|([a-z_][a-zA-Z0-9]{2,30}))$
   158 #attr-rgx=([a-z_][a-z0-9_]{2,30}|([a-z_][a-zA-Z0-9]{2,30}))$
   145 
   159 
   146 # Regular expression which should only match correct argument names
   160 # Regular expression which should only match correct argument names
   147 argument-rgx=[a-z_][a-z0-9_]{1,30}$
   161 argument-rgx=[a-z_][a-z0-9_]{1,30}$