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