|
| 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=devflow/version.py |
| 16 | + |
| 17 | +# Pickle collected data for later comparisons. |
| 18 | +persistent=no |
| 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 | +#disable= |
| 36 | +disable=W0511,R0922,W0201,R0922,R0801,I0011,C0111 |
| 37 | +disable-checker=similarities |
| 38 | + |
| 39 | +[REPORTS] |
| 40 | + |
| 41 | +# Set the output format. Available formats are text, parseable, colorized, msvs |
| 42 | +# (visual studio) and html |
| 43 | +output-format= colorized |
| 44 | + |
| 45 | +# Include message's id in output |
| 46 | +include-ids=yes |
| 47 | + |
| 48 | +# Put messages in a separate file for each module / package specified on the |
| 49 | +# command line instead of printing them on stdout. Reports (if any) will be |
| 50 | +# written in a file name "pylint_global.[txt|html]". |
| 51 | +files-output=no |
| 52 | + |
| 53 | +# Tells whether to display a full report or only the messages |
| 54 | +reports=yes |
| 55 | + |
| 56 | +# Python expression which should return a note less than 10 (10 is the highest |
| 57 | +# note). You have access to the variables errors warning, statement which |
| 58 | +# respectively contain the number of errors / warnings messages and the total |
| 59 | +# number of statements analyzed. This is used by the global evaluation report |
| 60 | +# (R0004). |
| 61 | +evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 62 | + |
| 63 | +# Add a comment according to your evaluation note. This is used by the global |
| 64 | +# evaluation report (R0004). |
| 65 | +comment=yes |
| 66 | + |
| 67 | + |
| 68 | +[TYPECHECK] |
| 69 | + |
| 70 | +# Tells whether missing members accessed in mixin class should be ignored. A |
| 71 | +# mixin class is detected if its name ends with "mixin" (case insensitive). |
| 72 | +ignore-mixin-members=yes |
| 73 | + |
| 74 | +# List of classes names for which member attributes should not be checked |
| 75 | +# (useful for classes with attributes dynamically set). |
| 76 | +ignored-classes=SQLObject |
| 77 | + |
| 78 | +# When zope mode is activated, add a predefined set of Zope acquired attributes |
| 79 | +# to generated-members. |
| 80 | +zope=no |
| 81 | + |
| 82 | +# List of members which are set dynamically and missed by pylint inference |
| 83 | +# system, and so shouldn't trigger E0201 when accessed. |
| 84 | +generated-members=REQUEST,acl_users,aq_parent |
| 85 | + |
| 86 | + |
| 87 | +[VARIABLES] |
| 88 | + |
| 89 | +# Tells whether we should check for unused import in __init__ files. |
| 90 | +init-import=no |
| 91 | + |
| 92 | +# A regular expression matching names used for dummy variables (i.e. not used). |
| 93 | +dummy-variables-rgx=_|dummy |
| 94 | + |
| 95 | +# List of additional names supposed to be defined in builtins. Remember that |
| 96 | +# you should avoid to define new builtins when possible. |
| 97 | +additional-builtins= |
| 98 | + |
| 99 | + |
| 100 | +[SIMILARITIES] |
| 101 | + |
| 102 | +# Minimum lines number of a similarity. |
| 103 | +min-similarity-lines=4 |
| 104 | + |
| 105 | +# Ignore comments when computing similarities. |
| 106 | +ignore-comments=yes |
| 107 | + |
| 108 | +# Ignore docstrings when computing similarities. |
| 109 | +ignore-docstrings=yes |
| 110 | + |
| 111 | + |
| 112 | +[MISCELLANEOUS] |
| 113 | + |
| 114 | +# List of note tags to take in consideration, separated by a comma. |
| 115 | +notes=FIXME,XXX,TODO |
| 116 | + |
| 117 | + |
| 118 | +[FORMAT] |
| 119 | + |
| 120 | +# Maximum number of characters on a single line. |
| 121 | +max-line-length=80 |
| 122 | + |
| 123 | +# Maximum number of lines in a module |
| 124 | +max-module-lines=1000 |
| 125 | + |
| 126 | +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 127 | +# tab). |
| 128 | +indent-string=' ' |
| 129 | + |
| 130 | + |
| 131 | +[BASIC] |
| 132 | + |
| 133 | +# Required attributes for module, separated by a comma |
| 134 | +required-attributes= |
| 135 | + |
| 136 | +# List of builtins function names that should not be used, separated by a comma |
| 137 | +bad-functions=map,filter,apply,input |
| 138 | + |
| 139 | +# Regular expression which should only match correct module names |
| 140 | +module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 141 | + |
| 142 | +# Regular expression which should only match correct module level names |
| 143 | +const-rgx = (_{0,2}([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$ |
| 144 | + |
| 145 | +# Regular expression which should only match correct class names |
| 146 | +class-rgx = [A-Z_][a-zA-Z0-9]+$ |
| 147 | + |
| 148 | +# Regular expression which should only match correct function names |
| 149 | +function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$ |
| 150 | + |
| 151 | +# Regular expression which should only match correct method names |
| 152 | +method-rgx = (_{0,2}[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*|__.*__|([a-z_][a-z0-9_]*))$ |
| 153 | + |
| 154 | +# Regular expression which should only match correct instance attribute names |
| 155 | +attr-rgx = [a-z_][a-z0-9_]{1,30}$ |
| 156 | + |
| 157 | +# Regular expression which should only match correct argument names |
| 158 | +argument-rgx = [a-z_][a-z0-9_]*$ |
| 159 | + |
| 160 | +# Regular expression which should only match correct variable names |
| 161 | +variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$ |
| 162 | + |
| 163 | +# Regular expression which should only match correct list comprehension / |
| 164 | +# generator expression variable names |
| 165 | +inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 166 | + |
| 167 | +# Good variable names which should always be accepted, separated by a comma |
| 168 | +good-names=i,j,k,ex,Run,_ |
| 169 | + |
| 170 | +# Bad variable names which should always be refused, separated by a comma |
| 171 | +bad-names=foo,bar,baz,toto,tutu,tata |
| 172 | + |
| 173 | +# Regular expression which should only match functions or classes name which do |
| 174 | +# not require a docstring |
| 175 | +#no-docstring-rgx = __.*__ |
| 176 | +no-docstring-rgx= .* |
| 177 | + |
| 178 | + |
| 179 | +[DESIGN] |
| 180 | + |
| 181 | +# Maximum number of arguments for function / method |
| 182 | +max-args=15 |
| 183 | + |
| 184 | +# Argument names that match this expression will be ignored. Default to name |
| 185 | +# with leading underscore |
| 186 | +ignored-argument-names=_.* |
| 187 | + |
| 188 | +# Maximum number of locals for function / method body |
| 189 | +max-locals=50 |
| 190 | + |
| 191 | +# Maximum number of return / yield for function / method body |
| 192 | +max-returns=10 |
| 193 | + |
| 194 | +# Maximum number of branch for function / method body |
| 195 | +max-branchs=80 |
| 196 | + |
| 197 | +# Maximum number of statements in function / method body |
| 198 | +max-statements=200 |
| 199 | + |
| 200 | +# Maximum number of parents for a class (see R0901). |
| 201 | +max-parents=7 |
| 202 | + |
| 203 | +# Maximum number of attributes for a class (see R0902). |
| 204 | +max-attributes=20 |
| 205 | + |
| 206 | +# Minimum number of public methods for a class (see R0903). |
| 207 | +min-public-methods=0 |
| 208 | + |
| 209 | +# Maximum number of public methods for a class (see R0904). |
| 210 | +max-public-methods=50 |
| 211 | + |
| 212 | + |
| 213 | +[CLASSES] |
| 214 | + |
| 215 | +# List of interface methods to ignore, separated by a comma. This is used for |
| 216 | +# instance to not check methods defines in Zope's Interface base class. |
| 217 | +ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by |
| 218 | + |
| 219 | +# List of method names used to declare (i.e. assign) instance attributes. |
| 220 | +defining-attr-methods=__init__,__new__,setUp |
| 221 | + |
| 222 | + |
| 223 | +[IMPORTS] |
| 224 | + |
| 225 | +# Deprecated modules which should not be used, separated by a comma |
| 226 | +deprecated-modules=regsub,string,TERMIOS,Bastion,rexec |
| 227 | + |
| 228 | +# Create a graph of every (i.e. internal and external) dependencies in the |
| 229 | +# given file (report RP0402 must not be disabled) |
| 230 | +import-graph= |
| 231 | + |
| 232 | +# Create a graph of external dependencies in the given file (report RP0402 must |
| 233 | +# not be disabled) |
| 234 | +ext-import-graph= |
| 235 | + |
| 236 | +# Create a graph of internal dependencies in the given file (report RP0402 must |
| 237 | +# not be disabled) |
| 238 | +int-import-graph= |
0 commit comments