root / pylintrc @ 83a2da0f
History | View | Annotate | Download (2.8 kB)
1 | 70c771f6 | Michael Hanselmann | # Configuration file for pylint (http://www.logilab.org/project/pylint). See |
---|---|---|---|
2 | 70c771f6 | Michael Hanselmann | # http://www.logilab.org/card/pylintfeatures for more detailed variable |
3 | 70c771f6 | Michael Hanselmann | # descriptions. |
4 | 70c771f6 | Michael Hanselmann | |
5 | 70c771f6 | Michael Hanselmann | [MASTER] |
6 | 70c771f6 | Michael Hanselmann | profile = no |
7 | 70c771f6 | Michael Hanselmann | ignore = |
8 | 70c771f6 | Michael Hanselmann | persistent = no |
9 | 70c771f6 | Michael Hanselmann | cache-size = 50000 |
10 | 70c771f6 | Michael Hanselmann | load-plugins = |
11 | 70c771f6 | Michael Hanselmann | |
12 | 70c771f6 | Michael Hanselmann | [REPORTS] |
13 | 70c771f6 | Michael Hanselmann | output-format = colorized |
14 | 80f3f415 | Iustin Pop | include-ids = yes |
15 | 70c771f6 | Michael Hanselmann | files-output = no |
16 | 70c771f6 | Michael Hanselmann | reports = no |
17 | 70c771f6 | Michael Hanselmann | evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
18 | 70c771f6 | Michael Hanselmann | comment = yes |
19 | 70c771f6 | Michael Hanselmann | |
20 | 70c771f6 | Michael Hanselmann | [BASIC] |
21 | 70c771f6 | Michael Hanselmann | required-attributes = |
22 | 80f3f415 | Iustin Pop | # disabling docstring checks since we have way too many without (complex |
23 | 80f3f415 | Iustin Pop | # inheritance hierarchies) |
24 | 80f3f415 | Iustin Pop | #no-docstring-rgx = __.*__ |
25 | 80f3f415 | Iustin Pop | no-docstring-rgx = .* |
26 | 70c771f6 | Michael Hanselmann | module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
27 | 80f3f415 | Iustin Pop | # added lower-case names |
28 | adb6d685 | Iustin Pop | const-rgx = ((_{0,2}[A-Za-z][A-Za-z0-9_]*)|(__.*__))$ |
29 | 70c771f6 | Michael Hanselmann | class-rgx = _?[A-Z][a-zA-Z0-9]+$ |
30 | 80f3f415 | Iustin Pop | # added lower-case names |
31 | 80f3f415 | Iustin Pop | function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$ |
32 | 80f3f415 | Iustin Pop | # add lower-case names, since derived classes must obey method names |
33 | 80f3f415 | Iustin Pop | method-rgx = (_{0,2}[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*|__.*__|([a-z_][a-z0-9_]*))$ |
34 | 70c771f6 | Michael Hanselmann | attr-rgx = [a-z_][a-z0-9_]{1,30}$ |
35 | 70c771f6 | Michael Hanselmann | argument-rgx = [a-z_][a-z0-9_]*$ |
36 | 80f3f415 | Iustin Pop | variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$ |
37 | 70c771f6 | Michael Hanselmann | inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$ |
38 | 70c771f6 | Michael Hanselmann | good-names = i,j,k,_ |
39 | 70c771f6 | Michael Hanselmann | bad-names = foo,bar,baz,toto,tutu,tata |
40 | 11c684bf | Michael Hanselmann | bad-functions = xrange |
41 | 70c771f6 | Michael Hanselmann | |
42 | 70c771f6 | Michael Hanselmann | [TYPECHECK] |
43 | 70c771f6 | Michael Hanselmann | ignore-mixin-members = yes |
44 | 70c771f6 | Michael Hanselmann | zope = no |
45 | 70c771f6 | Michael Hanselmann | acquired-members = |
46 | 70c771f6 | Michael Hanselmann | |
47 | 70c771f6 | Michael Hanselmann | [VARIABLES] |
48 | 70c771f6 | Michael Hanselmann | init-import = no |
49 | 70c771f6 | Michael Hanselmann | dummy-variables-rgx = _ |
50 | 70c771f6 | Michael Hanselmann | additional-builtins = |
51 | 70c771f6 | Michael Hanselmann | |
52 | 70c771f6 | Michael Hanselmann | [CLASSES] |
53 | 70c771f6 | Michael Hanselmann | ignore-iface-methods = |
54 | 70c771f6 | Michael Hanselmann | defining-attr-methods = __init__,__new__,setUp |
55 | 70c771f6 | Michael Hanselmann | |
56 | 70c771f6 | Michael Hanselmann | [DESIGN] |
57 | 80f3f415 | Iustin Pop | max-args = 15 |
58 | 80f3f415 | Iustin Pop | max-locals = 50 |
59 | 80f3f415 | Iustin Pop | max-returns = 10 |
60 | 80f3f415 | Iustin Pop | max-branchs = 80 |
61 | 80f3f415 | Iustin Pop | max-statements = 200 |
62 | 70c771f6 | Michael Hanselmann | max-parents = 7 |
63 | 80f3f415 | Iustin Pop | max-attributes = 20 |
64 | 80f3f415 | Iustin Pop | # zero as struct-like (PODS) classes don't export any methods |
65 | 80f3f415 | Iustin Pop | min-public-methods = 0 |
66 | 80f3f415 | Iustin Pop | max-public-methods = 50 |
67 | 70c771f6 | Michael Hanselmann | |
68 | 70c771f6 | Michael Hanselmann | [IMPORTS] |
69 | 70c771f6 | Michael Hanselmann | deprecated-modules = regsub,string,TERMIOS,Bastion,rexec |
70 | 70c771f6 | Michael Hanselmann | import-graph = |
71 | 70c771f6 | Michael Hanselmann | ext-import-graph = |
72 | 70c771f6 | Michael Hanselmann | int-import-graph = |
73 | 70c771f6 | Michael Hanselmann | |
74 | 70c771f6 | Michael Hanselmann | [FORMAT] |
75 | 70c771f6 | Michael Hanselmann | max-line-length = 80 |
76 | 80f3f415 | Iustin Pop | max-module-lines = 10000 |
77 | 70c771f6 | Michael Hanselmann | indent-string = " " |
78 | 70c771f6 | Michael Hanselmann | |
79 | 70c771f6 | Michael Hanselmann | [MISCELLANEOUS] |
80 | 70c771f6 | Michael Hanselmann | notes = FIXME,XXX,TODO |
81 | 70c771f6 | Michael Hanselmann | |
82 | 70c771f6 | Michael Hanselmann | [SIMILARITIES] |
83 | 70c771f6 | Michael Hanselmann | min-similarity-lines = 4 |
84 | 70c771f6 | Michael Hanselmann | ignore-comments = yes |
85 | 70c771f6 | Michael Hanselmann | ignore-docstrings = yes |
86 | dfe879ce | Iustin Pop | |
87 | dfe879ce | Iustin Pop | [MESSAGES CONTROL] |
88 | dfe879ce | Iustin Pop | |
89 | dfe879ce | Iustin Pop | # Enable only checker(s) with the given id(s). This option conflicts with the |
90 | dfe879ce | Iustin Pop | # disable-checker option |
91 | dfe879ce | Iustin Pop | #enable-checker= |
92 | dfe879ce | Iustin Pop | |
93 | dfe879ce | Iustin Pop | # Enable all checker(s) except those with the given id(s). This option |
94 | dfe879ce | Iustin Pop | # conflicts with the enable-checker option |
95 | dfe879ce | Iustin Pop | #disable-checker= |
96 | 0dda8696 | Iustin Pop | disable-checker=similarities |
97 | dfe879ce | Iustin Pop | |
98 | dfe879ce | Iustin Pop | # Enable all messages in the listed categories (IRCWEF). |
99 | dfe879ce | Iustin Pop | #enable-msg-cat= |
100 | dfe879ce | Iustin Pop | |
101 | dfe879ce | Iustin Pop | # Disable all messages in the listed categories (IRCWEF). |
102 | dfe879ce | Iustin Pop | disable-msg-cat= |
103 | dfe879ce | Iustin Pop | |
104 | dfe879ce | Iustin Pop | # Enable the message(s) with the given id(s). |
105 | dfe879ce | Iustin Pop | #enable-msg= |
106 | dfe879ce | Iustin Pop | |
107 | dfe879ce | Iustin Pop | # Disable the message(s) with the given id(s). |
108 | 460bb584 | Iustin Pop | disable-msg=W0511,R0922,W0201 |
109 | 37adad2b | Iustin Pop | |
110 | 37adad2b | Iustin Pop | # The new pylint 0.21+ style (plus the similarities checker, which is no longer |
111 | 37adad2b | Iustin Pop | # a separate opiton, but a generic disable control) |
112 | 37adad2b | Iustin Pop | disable=W0511,R0922,W0201,R0922,R0801,I0011 |