Bug fix: closing the file
[codimension.git] / pylintrc
blob1beb62c93001b0dcccbdc82d897ee99d175137f9
1 [MASTER]
3 # Specify a configuration file.
4 #rcfile=
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 #init-hook=
10 # Profiled execution.
11 profile=no
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        .svn,
17        unittest,
18        src/thirdparty/chardet,
19        chardet,
20        big5freq.py
22 # Pickle collected data for later comparisons.
23 persistent=yes
25 # List of plugins (as comma separated values of python modules names) to load,
26 # usually to register additional checkers.
27 load-plugins=
30 [MESSAGES CONTROL]
32 # Enable the message, report, category or checker with the given id(s). You can
33 # either give multiple identifier separated by comma (,) or put this option
34 # multiple time.
35 #enable=
37 # Disable the message, report, category or checker with the given id(s). You
38 # can either give multiple identifier separated by comma (,) or put this option
39 # multiple time (only on the command line, not in the configuration file where
40 # it should appear only once).
41 disable=C0326
44 [REPORTS]
46 # Set the output format. Available formats are text, parseable, colorized, msvs
47 # (visual studio) and html
48 output-format=text
50 # Include message's id in output
51 include-ids=no
53 # Put messages in a separate file for each module / package specified on the
54 # command line instead of printing them on stdout. Reports (if any) will be
55 # written in a file name "pylint_global.[txt|html]".
56 files-output=no
58 # Tells whether to display a full report or only the messages
59 reports=yes
61 # Python expression which should return a note less than 10 (10 is the highest
62 # note). You have access to the variables errors warning, statement which
63 # respectively contain the number of errors / warnings messages and the total
64 # number of statements analyzed. This is used by the global evaluation report
65 # (RP0004).
66 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
68 # Add a comment according to your evaluation note. This is used by the global
69 # evaluation report (RP0004).
70 comment=no
73 [BASIC]
75 # Required attributes for module, separated by a comma
76 required-attributes=
78 # List of builtins function names that should not be used, separated by a comma
79 bad-functions=map,filter,apply,input
81 # Regular expression which should only match correct module names
82 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
84 # Regular expression which should only match correct module level names
85 const-rgx=(([a-zA-Z_][a-zA-Z1-9_]*)|(__.*__))$
87 # Regular expression which should only match correct class names
88 class-rgx=[A-Z_][a-zA-Z0-9]+$
90 # Regular expression which should only match correct function names
91 function-rgx=[a-z_][a-zA-Z0-9_]{2,30}$
93 # Regular expression which should only match correct method names
94 method-rgx=[a-z_][a-zA-Z0-9_]{2,30}$
96 # Regular expression which should only match correct instance attribute names
97 attr-rgx=[a-z_][a-zA-Z0-9_]{2,30}$
99 # Regular expression which should only match correct argument names
100 argument-rgx=[a-z_][a-zA-Z0-9_]{2,30}$
102 # Regular expression which should only match correct variable names
103 variable-rgx=[a-z_][a-zA-Z0-9_]{2,30}$
105 # Regular expression which should only match correct list comprehension /
106 # generator expression variable names
107 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
109 # Good variable names which should always be accepted, separated by a comma
110 good-names=f,i,j,k,ex,Run,_
112 # Bad variable names which should always be refused, separated by a comma
113 bad-names=foo,bar,baz,toto,tutu,tata
115 # Regular expression which should only match functions or classes name which do
116 # not require a docstring
117 no-docstring-rgx=__.*__
120 [FORMAT]
122 # Maximum number of characters on a single line.
123 max-line-length=80
125 # Maximum number of lines in a module
126 max-module-lines=1000
128 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
129 # tab).
130 indent-string='    '
133 [TYPECHECK]
135 # Tells whether missing members accessed in mixin class should be ignored. A
136 # mixin class is detected if its name ends with "mixin" (case insensitive).
137 ignore-mixin-members=yes
139 # List of classes names for which member attributes should not be checked
140 # (useful for classes with attributes dynamically set).
141 ignored-classes=SQLObject
143 # When zope mode is activated, add a predefined set of Zope acquired attributes
144 # to generated-members.
145 zope=no
147 # List of members which are set dynamically and missed by pylint inference
148 # system, and so shouldn't trigger E0201 when accessed.
149 generated-members=REQUEST,acl_users,aq_parent
152 [SIMILARITIES]
154 # Minimum lines number of a similarity.
155 min-similarity-lines=4
157 # Ignore comments when computing similarities.
158 ignore-comments=yes
160 # Ignore docstrings when computing similarities.
161 ignore-docstrings=yes
164 [VARIABLES]
166 # Tells whether we should check for unused import in __init__ files.
167 init-import=no
169 # A regular expression matching the beginning of the name of dummy variables
170 # (i.e. not used).
171 dummy-variables-rgx=_|dummy
173 # List of additional names supposed to be defined in builtins. Remember that
174 # you should avoid to define new builtins when possible.
175 additional-builtins=
178 [MISCELLANEOUS]
180 # List of note tags to take in consideration, separated by a comma.
181 notes=FIXME,XXX,TODO
184 [IMPORTS]
186 # Deprecated modules which should not be used, separated by a comma
187 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
189 # Create a graph of every (i.e. internal and external) dependencies in the
190 # given file (report RP0402 must not be disabled)
191 import-graph=
193 # Create a graph of external dependencies in the given file (report RP0402 must
194 # not be disabled)
195 ext-import-graph=
197 # Create a graph of internal dependencies in the given file (report RP0402 must
198 # not be disabled)
199 int-import-graph=
202 [DESIGN]
204 # Maximum number of arguments for function / method
205 max-args=5
207 # Argument names that match this expression will be ignored. Default to name
208 # with leading underscore
209 ignored-argument-names=_.*
211 # Maximum number of locals for function / method body
212 max-locals=15
214 # Maximum number of return / yield for function / method body
215 max-returns=6
217 # Maximum number of branch for function / method body
218 max-branchs=12
220 # Maximum number of statements in function / method body
221 max-statements=50
223 # Maximum number of parents for a class (see R0901).
224 max-parents=7
226 # Maximum number of attributes for a class (see R0902).
227 max-attributes=7
229 # Minimum number of public methods for a class (see R0903).
230 min-public-methods=2
232 # Maximum number of public methods for a class (see R0904).
233 max-public-methods=20
236 [CLASSES]
238 # List of interface methods to ignore, separated by a comma. This is used for
239 # instance to not check methods defines in Zope's Interface base class.
240 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
242 # List of method names used to declare (i.e. assign) instance attributes.
243 defining-attr-methods=__init__,__new__,setUp