Warning, /games/kajongg/src/pylintrc is written in an unsupported language. File is not indexed.
0001 # lint Python modules using external checkers. 0002 # 0003 # This is the main checker controling the other ones and the reports 0004 # generation. It is itself both a raw checker and an astng checker in order 0005 # to: 0006 # * handle message activation / deactivation at the module level 0007 # * handle some basic but necessary stats'data (number of classes, methods...) 0008 # 0009 [MASTER] 0010 0011 # Specify a configuration file. 0012 #rcfile= 0013 0014 # Python code to execute, usually for sys.path manipulation such as 0015 # pygtk.require(). 0016 #init-hook= 0017 0018 # Add <file or directory> to the black list. It should be a base name, not a 0019 # path. You may set this option multiple times. 0020 ignore=CVS 0021 0022 # Pickle collected data for later comparisons. 0023 persistent=yes 0024 0025 # Set the cache size for astng objects. 0026 cache-size=500 0027 0028 # List of plugins (as comma separated values of python modules names) to load, 0029 # usually to register additional checkers. 0030 load-plugins= 0031 0032 jobs=6 0033 0034 [MESSAGES CONTROL] 0035 0036 # Enable only checker(s) with the given id(s). This option conflicts with the 0037 # disable-checker option 0038 #enable-checker= 0039 0040 # Enable all checker(s) except those with the given id(s). This option 0041 # conflicts with the enable-checker option 0042 #disable-checker= 0043 0044 # Enable all messages in the listed categories. 0045 #enable-msg-cat= 0046 0047 # Disable all messages in the listed categories. 0048 #disable-msg-cat= 0049 0050 # Enable the message(s) with the given id(s). 0051 #enable-msg= 0052 0053 # Disable the message(s) with the given id(s). 0054 # R0902 too many public methods 0055 # R0903 too few public methods 0056 # W0511 TODO 0057 # W0122 exec statement 0058 # E0211 method has no argument 0059 # disable=R0903,R0902,W0122 0060 disable=R0903,E0211,I0011,I0013,too-many-ancestors,no-member,import-outside-toplevel 0061 0062 0063 [REPORTS] 0064 0065 # set the output format. Available formats are text, parseable, colorized, msvs 0066 # (visual studio) and html 0067 output-format=text 0068 0069 # Include message's id in output 0070 # include-ids=yes deprecated 0071 0072 # Put messages in a separate file for each module / package specified on the 0073 # command line instead of printing them on stdout. Reports (if any) will be 0074 # written in a file name "pylint_global.[txt|html]". 0075 files-output=no 0076 0077 # Tells wether to display a full report or only the messages 0078 reports=no 0079 0080 # Python expression which should return a note less than 10 (10 is the highest 0081 # note).You have access to the variables errors warning, statement which 0082 # respectivly contain the number of errors / warnings messages and the total 0083 # number of statements analyzed. This is used by the global evaluation report 0084 # (R0004). 0085 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) 0086 0087 # Enable the report(s) with the given id(s). 0088 #enable-report= 0089 0090 # Disable the report(s) with the given id(s). 0091 #disable-report= 0092 0093 0094 # try to find bugs in the code using type inference 0095 # 0096 [TYPECHECK] 0097 0098 # Tells wether missing members accessed in mixin class should be ignored. A 0099 # mixin class is detected if its name ends with "mixin" (case insensitive). 0100 ignore-mixin-members=yes 0101 0102 # List of classes names for which member attributes should not be checked 0103 # (useful for classes with attributes dynamicaly set). 0104 ignored-classes=SQLObject,Message,Ruleset,Move,twisted.internet.reactor 0105 0106 # List of members which are usually get through zope's acquisition mecanism and 0107 # so shouldn't trigger E0201 when accessed (need zope=yes to be considered). 0108 acquired-members=REQUEST,acl_users,aq_parent 0109 0110 0111 # checks for : 0112 # * doc strings 0113 # * modules / classes / functions / methods / arguments / variables name 0114 # * number of arguments, local variables, branchs, returns and statements in 0115 # functions, methods 0116 # * required module attributes 0117 # * dangerous default values as arguments 0118 # * redefinition of function / method / class 0119 # * uses of the global statement 0120 # 0121 [BASIC] 0122 0123 # Regular expression which should only match functions or classes name which do 0124 # not require a docstring 0125 no-docstring-rgx=(fget|fset|(__.*__)) 0126 0127 # Regular expression which should only match correct module names 0128 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 0129 0130 # Regular expression which should only match correct module level names 0131 const-rgx=(([A-Z_][A-Z1-9_]*)|(__.*__))$ 0132 0133 # Regular expression which should only match correct class names 0134 class-rgx=[A-Z][a-zA-Z0-9]+$ 0135 0136 # Regular expression which should only match correct function names 0137 function-rgx=[a-z_][a-zA-Z0-9_]{2,30}$ 0138 0139 # Regular expression which should only match correct method names 0140 method-rgx=[a-z_][a-zA-Z0-9_]{2,30}$ 0141 0142 # Regular expression which should only match correct instance attribute names 0143 attr-rgx=[a-z_][a-zA-Z0-9_]{2,30}$ 0144 0145 # Regular expression which should only match correct argument names 0146 argument-rgx=[a-z_][a-zA-Z0-9_]{2,30}$ 0147 0148 # Regular expression which should only match correct variable names 0149 variable-rgx=[a-z_][a-zA-Z0-9_]{2,30}$ 0150 0151 # Regular expression which should only match correct list comprehension / 0152 # generator expression variable names 0153 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ 0154 0155 # Good variable names which should always be accepted, separated by a comma 0156 good-names=i,j,k,ex,Run,_ 0157 0158 # Bad variable names which should always be refused, separated by a comma 0159 bad-names=foo,bar,baz,toto,tutu,tata 0160 0161 # List of builtins function names that should not be used, separated by a comma 0162 bad-functions=map,filter,apply,input 0163 0164 0165 # checks for 0166 # * unused variables / imports 0167 # * undefined variables 0168 # * redefinition of variable from builtins or from an outer scope 0169 # * use of variable before assigment 0170 # 0171 [VARIABLES] 0172 0173 # Tells wether we should check for unused import in __init__ files. 0174 init-import=no 0175 0176 # A regular expression matching names used for dummy variables (i.e. not used). 0177 dummy-variables-rgx=_|dummy|fget|fset|(dummy[A-Z][a-zA-Z0-9]*?$) 0178 0179 ignored-argument-names=_.*|^unused_|unused|(^unused[A-Z].*?$) 0180 0181 # List of additional names supposed to be defined in builtins. Remember that 0182 # you should avoid to define new builtins when possible. 0183 additional-builtins= 0184 0185 0186 # checks for 0187 # * external modules dependencies 0188 # * relative / wildcard imports 0189 # * cyclic imports 0190 # * uses of deprecated modules 0191 # 0192 [IMPORTS] 0193 0194 # Deprecated modules which should not be used, separated by a comma 0195 deprecated-modules=regsub,TERMIOS,Bastion,rexec 0196 0197 # Create a graph of every (i.e. internal and external) dependencies in the 0198 # given file (report R0402 must not be disabled) 0199 import-graph= 0200 0201 # Create a graph of external dependencies in the given file (report R0402 must 0202 # not be disabled) 0203 ext-import-graph= 0204 0205 # Create a graph of internal dependencies in the given file (report R0402 must 0206 # not be disabled) 0207 int-import-graph= 0208 0209 0210 # checks for sign of poor/misdesign: 0211 # * number of methods, attributes, local variables... 0212 # * size, complexity of functions, methods 0213 # 0214 [DESIGN] 0215 0216 # Maximum number of arguments for function / method 0217 max-args=8 0218 0219 # Maximum number of locals for function / method body 0220 max-locals=15 0221 0222 # Maximum number of return / yield for function / method body 0223 max-returns=6 0224 0225 # Maximum number of branch for function / method body 0226 max-branchs=12 0227 0228 # Maximum number of statements in function / method body 0229 max-statements=50 0230 0231 # Maximum number of parents for a class (see R0901). 0232 max-parents=7 0233 0234 # Maximum number of attributes for a class (see R0902). 0235 max-attributes=10 0236 0237 # Minimum number of public methods for a class (see R0903). 0238 min-public-methods=2 0239 0240 # Maximum number of public methods for a class (see R0904). 0241 max-public-methods=40 0242 0243 0244 # checks for : 0245 # * methods without self as first argument 0246 # * overridden methods signature 0247 # * access only to existant members via self 0248 # * attributes not defined in the __init__ method 0249 # * supported interfaces implementation 0250 # * unreachable code 0251 # 0252 [CLASSES] 0253 0254 # List of method names used to declare (i.e. assign) instance attributes. 0255 defining-attr-methods=__init__,__new__,setUp,setupUi,setupActions,setupUILastTileMeld,clearHand,__build 0256 0257 0258 # checks for similarities and duplicated code. This computation may be 0259 # memory / CPU intensive, so you should disable it if you experiments some 0260 # problems. 0261 # 0262 [SIMILARITIES] 0263 0264 # Minimum lines number of a similarity. 0265 min-similarity-lines=8 0266 0267 # Ignore comments when computing similarities. 0268 # this way I can locally disable this with a comment 0269 ignore-comments=no 0270 0271 # Ignore docstrings when computing similarities. 0272 ignore-docstrings=yes 0273 0274 0275 # checks for: 0276 # * warning notes in the code like FIXME, XXX 0277 # * PEP 263: source code with non ascii character but no encoding declaration 0278 # 0279 [MISCELLANEOUS] 0280 0281 # List of note tags to take in consideration, separated by a comma. 0282 notes=FIXME,XXX 0283 0284 0285 # checks for : 0286 # * unauthorized constructions 0287 # * strict indentation 0288 # * line length 0289 # * use of <> instead of != 0290 # 0291 [FORMAT] 0292 0293 # Maximum number of characters on a single line. 0294 max-line-length=120 0295 0296 # Maximum number of lines in a module 0297 max-module-lines=1300 0298 0299 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 0300 # tab). 0301 indent-string=' ' 0302 0303 extension-pkg-whitelist=sip,PySide2