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