pylintrc revision 3253
0N/A#
3909N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
2362N/A# CDDL HEADER END
2362N/A
2362N/A#
0N/A# Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
0N/A# This file is used to control pylint when checking python source
0N/A#
0N/A
0N/A[MASTER]
0N/A
0N/A# Profiled execution.
0N/Aprofile=no
0N/A
0N/A# Add <file or directory> to the black list. It should be a base name, not a
0N/A# path. You may set this option multiple times.
0N/Aignore=.hg
0N/A
0N/A# Pickle collected data for later comparisons.
0N/Apersistent=no
0N/A
0N/A# List of plugins (as comma separated values of python modules names) to load,
0N/A# usually to register additional checkers.
0N/Aload-plugins=multiplatform
0N/A
0N/A# A comma-separated list of package or module names from where C extensions may
0N/A# be loaded. Extensions are loading into the active Python interpreter and may
0N/A# run arbitrary code
0N/Aextension-pkg-whitelist=pkg.syscallat, pkg.solver
0N/A
0N/A[MESSAGES CONTROL]
0N/A
0N/A# Enable all checker(s) except those with the given id(s). This option
0N/A# conflicts with the enable-checker option
3323N/Adisable-checker=similarities
0N/A
0N/A# Disable the message(s) with the given id(s).
0N/A# C0103 Invalid name "%s" Used when the const/var/class name doesn't match regex
0N/A# C0302 Too many lines in module
0N/A# C0326 Bad whitespace
0N/A# C0330 Bad continuation
0N/A# R0901 Too many ancestors (%s/%s)
0N/A# R0902 Too many instance attributes
0N/A# R0904 Too many public methods
0N/A# R0911 Too many return statements
0N/A# R0912 Too many branches
0N/A# R0913 Too many arguments
0N/A# R0914 Too many local variables
0N/A# R0915 Too many statements
0N/A# R0923 Interface not implemented
0N/A# W0141 Used builtin function '%s'
0N/A# W0142 Used * or ** magic
0N/A# W0614 Unused import %s from wildcard import
0N/A# W1504 Unidiomatic typecheck
0N/A# I0011 Locally disabling %r
0N/A# I0012 Locally enabling %s (%s)
0N/Adisable=C0103,C0302,C0326,C0330,R0901,R0902,R0904,R0911,R0912,R0913,R0914,R0915,R0923,W0141,W0142,W0614,W1504,I0011,I0012
0N/A
0N/A[REPORTS]
0N/A# set the output format. Available formats are text, parseable, colorized, msvs
0N/A# (visual studio) and html
0N/Aoutput-format=text
0N/A
0N/A# Deprecated. It was used to include message's id in output. Use --msg-template
0N/A# instead.
0N/A#include-ids=no
0N/A
0N/A# Put messages in a separate file for each module / package specified on the
0N/A# command line instead of printing them on stdout. Reports (if any) will be
0N/A# written in a file name "pylint_global.[txt|html]".
0N/Afiles-output=no
0N/A
0N/A# Tells wether to display a full report or only the messages
0N/Areports=yes
0N/A
0N/A# Python expression which should return a note less than 10 (10 is the highest
0N/A# note).You have access to the variables errors warning, statement which
0N/A# respectivly contain the number of errors / warnings messages and the total
0N/A# number of statements analyzed. This is used by the global evaluation report
0N/A# (R0004).
0N/Aevaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
0N/A
0N/A# Add a comment according to your evaluation note. This is used by the global
0N/A# evaluation report (R0004).
0N/Acomment=no
0N/A
0N/A# Template used to display messages. This is a python new-style format string
0N/A# used to format the message information. See doc for all details
0N/Amsg-template='{msg_id}:{line:3d},{column:2d}: {msg} ({symbol})'
0N/A
0N/A# checks for :
0N/A# * doc strings
0N/A# * modules / classes / functions / methods / arguments / variables name
0N/A# * number of arguments, local variables, branchs, returns and statements in
0N/A# functions, methods
0N/A# * required module attributes
0N/A# * dangerous default values as arguments
0N/A# * redefinition of function / method / class
0N/A# * uses of the global statement
0N/A#
0N/A[BASIC]
0N/A
0N/A# Required attributes for module, separated by a comma
0N/Arequired-attributes=
0N/A
0N/A# Regular expression which should only match functions or classes name which do
0N/A# not require a docstring
0N/Ano-docstring-rgx=__.*__
0N/A
0N/A# Regular expression which should only match correct module names
0N/Amodule-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
0N/A
0N/A# Regular expression which should only match correct module level names
0N/Aconst-rgx=(([A-Z_][A-Z1-9_]*)|(__.*__))$
0N/A
0N/A# Regular expression which should only match correct class names
0N/Aclass-rgx=[A-Z_][a-zA-Z0-9]+$
0N/A
0N/A# Regular expression which should only match correct function names
0N/Afunction-rgx=[a-z_][a-z0-9_]{2,30}$
0N/A
0N/A# Regular expression which should only match correct method names
0N/Amethod-rgx=[a-z_][a-z0-9_]{2,30}$
0N/A
0N/A# Regular expression which should only match correct instance attribute names
0N/Aattr-rgx=[a-z_][a-z0-9_]{2,30}$
0N/A
0N/A# Regular expression which should only match correct argument names
0N/Aargument-rgx=[a-z_][a-z0-9_]{2,30}$
0N/A
0N/A# Regular expression which should only match correct variable names
0N/Avariable-rgx=[a-z_][a-z0-9_]{2,30}$
0N/A
0N/A# Regular expression which should only match correct list comprehension /
0N/A# generator expression variable names
0N/Ainlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
0N/A
0N/A# Good variable names which should always be accepted, separated by a comma
0N/Agood-names=i,j,k,ex,Run,_
0N/A
0N/A# Bad variable names which should always be refused, separated by a comma
0N/Abad-names=foo,bar,baz,toto,tutu,tata
0N/A
0N/A# List of builtins function names that should not be used, separated by a comma
0N/Abad-functions=map,filter,apply,input
0N/A
0N/A
0N/A# try to find bugs in the code using type inference
0N/A#
0N/A[TYPECHECK]
0N/A
0N/A# Tells wether missing members accessed in mixin class should be ignored. A
0N/A# mixin class is detected if its name ends with "mixin" (case insensitive).
0N/Aignore-mixin-members=yes
0N/A
0N/A# When zope mode is activated, consider the acquired-members option to ignore
0N/A# access to some undefined attributes.
0N/Azope=no
0N/A
0N/A# List of members which are usually get through zope's acquisition mecanism and
0N/A# so shouldn't trigger E0201 when accessed (need zope=yes to be considered).
0N/Aacquired-members=REQUEST,acl_users,aq_parent
0N/A
0N/A
0N/A# checks for
0N/A# * unused variables / imports
0N/A# * undefined variables
0N/A# * redefinition of variable from builtins or from an outer scope
0N/A# * use of variable before assigment
0N/A#
0N/A[VARIABLES]
0N/A
0N/A# Tells wether we should check for unused import in __init__ files.
0N/Ainit-import=yes
0N/A
0N/A# A regular expression matching names used for dummy variables (i.e. not used).
0N/Adummy-variables-rgx=_|dummy
0N/A
0N/A# List of additional names supposed to be defined in builtins. Remember that
0N/A# you should avoid to define new builtins when possible.
0N/A
0N/A# In this case we define '_' (the function name for gettext) so that pylint
0N/A# doesn't complain about things like _("this is i18n string")
0N/Aadditional-builtins=_
0N/A
0N/A
0N/A# checks for :
0N/A# * methods without self as first argument
0N/A# * overridden methods signature
0N/A# * access only to existant members via self
0N/A# * attributes not defined in the __init__ method
0N/A# * supported interfaces implementation
0N/A# * unreachable code
0N/A#
0N/A[CLASSES]
0N/A
0N/A# List of interface methods to ignore, separated by a comma. This is used for
0N/A# instance to not check methods defines in Zope's Interface base class.
0N/Aignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
0N/A
0N/A# List of method names used to declare (i.e. assign) instance attributes.
0N/Adefining-attr-methods=__init__,__new__,setUp
0N/A
0N/A
0N/A# checks for sign of poor/misdesign:
0N/A# * number of methods, attributes, local variables...
0N/A# * size, complexity of functions, methods
0N/A#
0N/A[DESIGN]
0N/A
0N/A# Maximum number of arguments for function / method
0N/Amax-args=7
0N/A
0N/A# Maximum number of locals for function / method body
0N/Amax-locals=50
0N/A
0N/A# Maximum number of return / yield for function / method body
0N/Amax-returns=6
0N/A
0N/A# Maximum number of branch for function / method body
0N/Amax-branchs=25
0N/A
0N/A# Maximum number of statements in function / method body
0N/Amax-statements=100
0N/A
0N/A# Maximum number of parents for a class (see R0901).
0N/Amax-parents=7
0N/A
0N/A# Maximum number of attributes for a class (see R0902).
0N/Amax-attributes=7
0N/A
0N/A# Minimum number of public methods for a class (see R0903).
0N/Amin-public-methods=0
0N/A
0N/A# Maximum number of public methods for a class (see R0904).
0N/Amax-public-methods=20
0N/A
0N/A
0N/A# checks for
0N/A# * external modules dependencies
0N/A# * relative / wildcard imports
0N/A# * cyclic imports
0N/A# * uses of deprecated modules
0N/A#
0N/A[IMPORTS]
0N/A
0N/A# Deprecated modules which should not be used, separated by a comma
0N/Adeprecated-modules=regsub,string,TERMIOS,Bastion,rexec
0N/A
0N/A# Create a graph of every (i.e. internal and external) dependencies in the
0N/A# given file (report R0402 must not be disabled)
0N/Aimport-graph=
0N/A
0N/A# Create a graph of external dependencies in the given file (report R0402 must
0N/A# not be disabled)
0N/Aext-import-graph=
0N/A
0N/A# Create a graph of internal dependencies in the given file (report R0402 must
0N/A# not be disabled)
0N/Aint-import-graph=
0N/A
0N/A
0N/A# checks for :
0N/A# * unauthorized constructions
0N/A# * strict indentation
0N/A# * line length
0N/A# * use of <> instead of !=
0N/A#
0N/A[FORMAT]
0N/A
0N/A# Maximum number of characters on a single line.
0N/Amax-line-length=80
0N/A
0N/A# Maximum number of lines in a module
0N/Amax-module-lines=1000
0N/A
0N/A# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
0N/A# tab).
0N/Aindent-string=' '
0N/A
0N/A
0N/A# checks for:
0N/A# * warning notes in the code like FIXME, XXX
0N/A# * PEP 263: source code with non ascii character but no encoding declaration
0N/A#
0N/A[MISCELLANEOUS]
0N/A
0N/A# List of note tags to take in consideration, separated by a comma.
0N/Anotes=FIXME,XXX,TODO
0N/A
0N/A
0N/A# checks for similarities and duplicated code. This computation may be
0N/A# memory / CPU intensive, so you should disable it if you experiments some
0N/A# problems.
0N/A#
0N/A[SIMILARITIES]
0N/A
0N/A# Minimum lines number of a similarity.
0N/Amin-similarity-lines=4
0N/A
0N/A# Ignore comments when computing similarities.
0N/Aignore-comments=yes
0N/A
0N/A# Ignore docstrings when computing similarities.
0N/Aignore-docstrings=yes
0N/A