forked from miohtama/silvuple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
validation-options.yaml
54 lines (43 loc) · 1.66 KB
/
validation-options.yaml
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
# https://github.com/miohtama/vvv
pylint:
enabled: true
python3k: false
pylint-command: ../../bin/pylint
configuration: |
[BASIC]
# Allow one letter variables
variable-rgx=.*$
# Regular expression which should only match correct instance attribute names.
# Allow two letter attributes
attr-rgx=.*$
# Allow module level lowercase variables
const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
[FORMAT]
max-line-length=250
[MISCELLANEOUS]
# Don't fail validation because of our TODO tags in source code
notes=
[DESIGN]
# Maximum number of arguments for function / method
max-args=12
# Maximum number of attributes for a class (see R0902).
max-attributes=25
[MESSAGES CONTROL]
# Disable:
# - Missing docstring
# :C0112: *Empty docstring*
# :R0903: *Too few public methods (%s/%s)*
# :R0904: *Too many public methods (%s/%s)*
# W0232: 14,0:IThemeSpecific: Class has no __init__ method --> interface class lacks these
# E0611: 11,0: No name 'interface' in module 'zope'
# F0401: 11,0: Unable to import 'zope.interface'
# W0403: 18,0: Relative import 'interfaces', should be 'visualtitle.interfaces'
# E1101: 20,0: Module 'five.grok' has no 'templatedir' member
# W0201: 49,8:MyFooter.update: Attribute 'portal_state' defined outside __init__
# C0103: 59,4:VisualTitleExtender.getFields: Invalid name "getFields" (should match [a-z_][a-z0-9_]{2,30}$)
# R0911: 32,0:get_editor_language: Too many return statements (7/6)
disable = C0111, C0112, R0903, R0904, R0911, W0232, F0401, E0611, W0403, E1101, W0201, C0103
jshint:
enabled: true
linelength:
length: 250