File: pylintrc

package info (click to toggle)
python-adal 1.2.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,344 kB
  • sloc: xml: 12,790; python: 4,656; makefile: 14
file content (109 lines) | stat: -rw-r--r-- 2,996 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[MASTER]

ignore=.svn
persistent=yes
cache-size=500
load-plugins=

[MESSAGES CONTROL]

#enable-checker=
#disable-checker=design
#enable-msg-cat=
#disable-msg-cat=
#enable-msg=

# Disabled messages:
# C0321: Multiple statements on a single line
# W0105: String statement has no effect
# W0142: Used * or ** magic
# W0404: Reimport '<package>'
# W0704: Except doesn't do anything Used when an except clause does nothing but "pass" 
#        and there is no "else" clause.
# I0011: Locally disabling (message)
# R0921: Abstract class not referenced
# C0111: missing-docstring
# C0303: railing whitespace
# C0301: Line too long
disable=C0111,C0321,C0303,C0301,W0105,W0142,W0404,W0704,I0011,R0921

[REPORTS]

# Available formats are text, parseable, colorized, msvs (Visual Studio) and html
output-format=msvs
files-output=no
reports=yes

# Python expression which should return a note less than 10 (10 is the highest
# note).You have access to the variables errors warning, statement which
# respectivly contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (R0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)

#enable-report=
#disable-report=

[BASIC]

no-docstring-rgx=__.*__

# Regular expression which should only match correct module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

# Regular expression which should only match correct module level names
const-rgx=(([A-Z_][A-Z1-9_]*)|(__.*__)|([a-z_][a-z0-9_]*))$

# Regular expression which should only match correct class names
class-rgx=[a-zA-Z0-9_]+$

# Regular expression which should only match correct function names
function-rgx=[a-zA-Z_][a-zA-Z0-9_]{2,50}$

# Regular expression which should only match correct method names
method-rgx=[a-z_][a-zA-Z0-9_]{2,60}$

# Regular expression which should only match correct instance attribute names
attr-rgx=[a-z_][a-z0-9_]{1,30}$

# Regular expression which should only match correct argument names
argument-rgx=[a-z_][a-z0-9_]{1,30}$

# Regular expression which should only match correct variable names
variable-rgx=[a-z_][a-zA-Z0-9_]{0,40}$

# Regular expression which should only match correct list comprehension /
# generator expression variable names
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$

# Good variable names which should always be accepted, separated by a comma
good-names=i,j,k,ex,Run,_,x,y

# Bad variable names which should always be refused, separated by a comma
bad-names=foo,bar,baz,toto,tutu,tata

# List of builtins function names that should not be used, separated by a comma
bad-functions=filter,apply,input

[DESIGN]

max-args=10
max-locals=30
max-returns=6
max-branchs=18
max-statements=50
max-parents=5
max-attributes=15
min-public-methods=1
max-public-methods=20

[FORMAT]

max-line-length=120
max-module-lines=1000
indent-string='    '

[SIMILARITIES]

# Effectively disable similarity checking
min-similarity-lines=10000