OLD | NEW |
(Empty) | |
| 1 [MASTER] |
| 2 |
| 3 # Specify a configuration file. |
| 4 #rcfile= |
| 5 |
| 6 # Python code to execute, usually for sys.path manipulation such as |
| 7 # pygtk.require(). |
| 8 #init-hook= |
| 9 |
| 10 # Profiled execution. |
| 11 profile=no |
| 12 |
| 13 # Add <file or directory> to the black list. It should be a base name, not a |
| 14 # path. You may set this option multiple times. |
| 15 ignore=CVS |
| 16 |
| 17 # Pickle collected data for later comparisons. |
| 18 persistent=yes |
| 19 |
| 20 # List of plugins (as comma separated values of python modules names) to load, |
| 21 # usually to register additional checkers. |
| 22 load-plugins= |
| 23 |
| 24 |
| 25 [MESSAGES CONTROL] |
| 26 |
| 27 # Enable the message, report, category or checker with the given id(s). You can |
| 28 # either give multiple identifier separated by comma (,) or put this option |
| 29 # multiple time. |
| 30 #enable= |
| 31 |
| 32 # Disable the message, report, category or checker with the given id(s). You |
| 33 # can either give multiple identifier separated by comma (,) or put this option |
| 34 # multiple time. |
| 35 # C0103: Invalid name "" |
| 36 # C0111: Missing docstring |
| 37 # C0302: Too many lines in module (N) |
| 38 # I0011: Locally disabling WNNNN |
| 39 # |
| 40 # It's a problem but not something we can fix right now. |
| 41 # R0401: Cyclic import |
| 42 # |
| 43 # R0801: Similar lines in N files |
| 44 # R0901: Too many ancestors (8/7) |
| 45 # R0902: Too many instance attributes (N/7) |
| 46 # R0903: Too few public methods (N/2) |
| 47 # R0904: Too many public methods (N/20) |
| 48 # R0911: Too many return statements (N/6) |
| 49 # R0912: Too many branches (N/12) |
| 50 # R0913: Too many arguments (N/5) |
| 51 # R0914: Too many local variables (N/15) |
| 52 # R0915: Too many statements (N/50) |
| 53 # R0922: Abstract class is only referenced 1 times |
| 54 # W0122: Use of the exec statement |
| 55 # W0141: Used builtin function '' |
| 56 # W0142: Used * or ** magic |
| 57 # W0402: Uses of a deprecated module 'string' |
| 58 # W0404: 41: Reimport 'XX' (imported line NN) |
| 59 # W0511: TODO |
| 60 # W0603: Using the global statement |
| 61 # W0613: Unused argument '' |
| 62 # W0703: Catch "Exception" |
| 63 # W1201: Specify string format arguments as logging function parameters |
| 64 disable=C0103,C0111,C0302,I0011,R0401,R0801,R0901,R0902,R0903,R0904,R0911,R0912,
R0913,R0914,R0915,R0922,W0122,W0141,W0142,W0402,W0404,W0511,W0603,W0613,W0703,W1
201 |
| 65 |
| 66 |
| 67 [REPORTS] |
| 68 |
| 69 # Set the output format. Available formats are text, parseable, colorized, msvs |
| 70 # (visual studio) and html |
| 71 output-format=text |
| 72 |
| 73 # Include message's id in output |
| 74 include-ids=yes |
| 75 |
| 76 # Put messages in a separate file for each module / package specified on the |
| 77 # command line instead of printing them on stdout. Reports (if any) will be |
| 78 # written in a file name "pylint_global.[txt|html]". |
| 79 files-output=no |
| 80 |
| 81 # Tells whether to display a full report or only the messages |
| 82 # CHANGE: No report. |
| 83 reports=no |
| 84 |
| 85 # Python expression which should return a note less than 10 (10 is the highest |
| 86 # note). You have access to the variables errors warning, statement which |
| 87 # respectively contain the number of errors / warnings messages and the total |
| 88 # number of statements analyzed. This is used by the global evaluation report |
| 89 # (R0004). |
| 90 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme
nt) * 10) |
| 91 |
| 92 # Add a comment according to your evaluation note. This is used by the global |
| 93 # evaluation report (R0004). |
| 94 comment=no |
| 95 |
| 96 |
| 97 [MISCELLANEOUS] |
| 98 |
| 99 # List of note tags to take in consideration, separated by a comma. |
| 100 notes=FIXME,XXX,TODO |
| 101 |
| 102 |
| 103 [FORMAT] |
| 104 |
| 105 # Maximum number of characters on a single line. |
| 106 max-line-length=80 |
| 107 |
| 108 # Maximum number of lines in a module |
| 109 max-module-lines=1000 |
| 110 |
| 111 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 112 # tab). |
| 113 # CHANGE: Use " " instead. |
| 114 indent-string=' ' |
| 115 |
| 116 |
| 117 [TYPECHECK] |
| 118 |
| 119 # Tells whether missing members accessed in mixin class should be ignored. A |
| 120 # mixin class is detected if its name ends with "mixin" (case insensitive). |
| 121 ignore-mixin-members=yes |
| 122 |
| 123 # List of classes names for which member attributes should not be checked |
| 124 # (useful for classes with attributes dynamically set). |
| 125 ignored-classes=SQLObject |
| 126 |
| 127 # When zope mode is activated, add a predefined set of Zope acquired attributes |
| 128 # to generated-members. |
| 129 zope=no |
| 130 |
| 131 # List of members which are set dynamically and missed by pylint inference |
| 132 # system, and so shouldn't trigger E0201 when accessed. |
| 133 generated-members=REQUEST,acl_users,aq_parent |
| 134 |
| 135 |
| 136 [BASIC] |
| 137 |
| 138 # Required attributes for module, separated by a comma |
| 139 required-attributes= |
| 140 |
| 141 # List of builtins function names that should not be used, separated by a comma |
| 142 bad-functions=map,filter,apply,input |
| 143 |
| 144 # Regular expression which should only match correct module names |
| 145 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 146 |
| 147 # Regular expression which should only match correct module level names |
| 148 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 149 |
| 150 # Regular expression which should only match correct class names |
| 151 class-rgx=[A-Z_][a-zA-Z0-9]+$ |
| 152 |
| 153 # Regular expression which should only match correct function names |
| 154 function-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 155 |
| 156 # Regular expression which should only match correct method names |
| 157 method-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 158 |
| 159 # Regular expression which should only match correct instance attribute names |
| 160 attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 161 |
| 162 # Regular expression which should only match correct argument names |
| 163 argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 164 |
| 165 # Regular expression which should only match correct variable names |
| 166 variable-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 167 |
| 168 # Regular expression which should only match correct list comprehension / |
| 169 # generator expression variable names |
| 170 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 171 |
| 172 # Good variable names which should always be accepted, separated by a comma |
| 173 good-names=i,j,k,ex,Run,_ |
| 174 |
| 175 # Bad variable names which should always be refused, separated by a comma |
| 176 bad-names=foo,bar,baz,toto,tutu,tata |
| 177 |
| 178 # Regular expression which should only match functions or classes name which do |
| 179 # not require a docstring |
| 180 no-docstring-rgx=__.*__ |
| 181 |
| 182 |
| 183 [VARIABLES] |
| 184 |
| 185 # Tells whether we should check for unused import in __init__ files. |
| 186 init-import=no |
| 187 |
| 188 # A regular expression matching names used for dummy variables (i.e. not used). |
| 189 dummy-variables-rgx=_|dummy |
| 190 |
| 191 # List of additional names supposed to be defined in builtins. Remember that |
| 192 # you should avoid to define new builtins when possible. |
| 193 additional-builtins= |
| 194 |
| 195 |
| 196 [SIMILARITIES] |
| 197 |
| 198 # Minimum lines number of a similarity. |
| 199 min-similarity-lines=4 |
| 200 |
| 201 # Ignore comments when computing similarities. |
| 202 ignore-comments=yes |
| 203 |
| 204 # Ignore docstrings when computing similarities. |
| 205 ignore-docstrings=yes |
| 206 |
| 207 |
| 208 [CLASSES] |
| 209 |
| 210 # List of interface methods to ignore, separated by a comma. This is used for |
| 211 # instance to not check methods defines in Zope's Interface base class. |
| 212 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions
,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,ge
tTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,a
daptWith,is_implemented_by |
| 213 |
| 214 # List of method names used to declare (i.e. assign) instance attributes. |
| 215 defining-attr-methods=__init__,__new__,setUp |
| 216 |
| 217 |
| 218 [DESIGN] |
| 219 |
| 220 # Maximum number of arguments for function / method |
| 221 max-args=5 |
| 222 |
| 223 # Argument names that match this expression will be ignored. Default to name |
| 224 # with leading underscore |
| 225 ignored-argument-names=_.* |
| 226 |
| 227 # Maximum number of locals for function / method body |
| 228 max-locals=15 |
| 229 |
| 230 # Maximum number of return / yield for function / method body |
| 231 max-returns=6 |
| 232 |
| 233 # Maximum number of branch for function / method body |
| 234 max-branchs=12 |
| 235 |
| 236 # Maximum number of statements in function / method body |
| 237 max-statements=50 |
| 238 |
| 239 # Maximum number of parents for a class (see R0901). |
| 240 max-parents=7 |
| 241 |
| 242 # Maximum number of attributes for a class (see R0902). |
| 243 max-attributes=7 |
| 244 |
| 245 # Minimum number of public methods for a class (see R0903). |
| 246 min-public-methods=2 |
| 247 |
| 248 # Maximum number of public methods for a class (see R0904). |
| 249 max-public-methods=20 |
| 250 |
| 251 |
| 252 [IMPORTS] |
| 253 |
| 254 # Deprecated modules which should not be used, separated by a comma |
| 255 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec |
| 256 |
| 257 # Create a graph of every (i.e. internal and external) dependencies in the |
| 258 # given file (report R0402 must not be disabled) |
| 259 import-graph= |
| 260 |
| 261 # Create a graph of external dependencies in the given file (report R0402 must |
| 262 # not be disabled) |
| 263 ext-import-graph= |
| 264 |
| 265 # Create a graph of internal dependencies in the given file (report R0402 must |
| 266 # not be disabled) |
| 267 int-import-graph= |
OLD | NEW |