~ltp-devs/loco-team-portal/django-1-3-upgrade

527.1.1 by Adnane Belmadiaf
* Added a pylint.rc for pylint
1
[MASTER]
2
profile=no
3
persistent=yes
4
ignore=migrations
5
cache-size=500
6
7
[MESSAGES CONTROL]
8
# C0111 Missing docstring 
9
# I0011 Warning locally suppressed using disable-msg
10
# I0012 Warning locally suppressed using disable-msg
11
# W0704 Except doesn't do anything Used when an except clause does nothing but "pass" and there is no "else" clause
12
# W0142 Used * or * magic* Used when a function or method is called using *args or **kwargs to dispatch arguments.
13
# W0212 Access to a protected member %s of a client class
14
# W0232 Class has no __init__ method Used when a class has no __init__ method, neither its parent classes.
15
# W0613 Unused argument %r Used when a function or method argument is not used.
16
# W0702 No exception's type specified Used when an except clause doesn't specify exceptions type to catch.
17
# R0201 Method could be a function
531.1.1 by Adnane Belmadiaf
* Fixed the articles app coding styles
18
disable=C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,R0903,R0904,R0914
527.1.1 by Adnane Belmadiaf
* Added a pylint.rc for pylint
19
20
[REPORTS]
21
output-format=parseable
22
include-ids=yes
23
24
[BASIC]
25
no-docstring-rgx=__.*__|_.*
26
class-rgx=[A-Z_][a-zA-Z0-9_]+$
27
function-rgx=[a-zA_][a-zA-Z0-9_]{2,70}$
28
method-rgx=[a-z_][a-zA-Z0-9_]{2,70}$
29
const-rgx=(([A-Z_][A-Z0-9_]*)|([a-z_][a-z0-9_]*)|(__.*__)|register|urlpatterns)$
30
good-names=_,i,j,k,e,qs,pk,setUp,tearDown
31
32
[TYPECHECK]
33
34
# Tells whether missing members accessed in mixin class should be ignored. A
35
# mixin class is detected if its name ends with "mixin" (case insensitive).
36
ignore-mixin-members=yes
37
38
# List of classes names for which member attributes should not be checked
39
# (useful for classes with attributes dynamically set).
40
ignored-classes=SQLObject
41
42
# When zope mode is activated, add a predefined set of Zope acquired attributes
43
# to generated-members.
44
zope=no
45
46
# List of members which are set dynamically and missed by pylint inference
47
# system, and so shouldn't trigger E0201 when accessed.
48
generated-members=objects,DoesNotExist,id,pk,_meta,base_fields,context
49
50
# List of method names used to declare (i.e. assign) instance attributes
51
defining-attr-methods=__init__,__new__,setUp
52
53
54
[VARIABLES]
55
init-import=no
56
dummy-variables-rgx=_|dummy
57
58
[SIMILARITIES]
59
min-similarity-lines=6
60
ignore-comments=yes
61
ignore-docstrings=yes
62
63
64
[MISCELLANEOUS]
65
notes=FIXME,XXX,TODO
66
67
68
[FORMAT]
69
max-line-length=160
70
max-module-lines=500
71
indent-string='    '
72
73
74
[DESIGN]
75
max-args=10
76
max-locals=15
77
max-returns=6
78
max-branchs=12
79
max-statements=50
80
max-parents=7
81
max-attributes=7
82
min-public-methods=0
83
max-public-methods=50