-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrubocop.yml
74 lines (60 loc) · 1.55 KB
/
rubocop.yml
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
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
TargetRubyVersion: 2.4
Exclude:
- 'examples/rails/config/**/*'
- 'examples/doc_scan/config/**/*'
- 'examples/doc_scan/bin/**/*'
- 'lib/yoti/protobuf/attrpubapi/*'
- 'lib/yoti/protobuf/compubapi/*'
- 'lib/yoti/protobuf/sharepubapi/*'
- 'vendor/**/*'
Metrics/AbcSize:
Enabled: false
Max: 23
Exclude:
- examples/rails/app/controllers/yoti_controller.rb
Metrics/BlockLength:
Exclude:
- spec/**/**/*.rb
- yoti.gemspec
Metrics/CyclomaticComplexity:
Max: 9
Metrics/ClassLength:
Enabled: false
Max: 115
Layout/LineLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
CountComments: false
Max: 19
Exclude:
- spec/yoti/data_type/multi_value_spec.rb
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/MutableConstant:
Enabled: false
Naming/MethodName:
Exclude:
- lib/yoti/util/anchor_processor.rb
Naming/PredicateName:
Exclude:
- lib/yoti/util/age_processor.rb
Metrics/ParameterLists:
Exclude:
- lib/yoti/doc_scan/session/create/sdk_config.rb
- lib/yoti/doc_scan/session/create/session_specification.rb
- spec/yoti/doc_scan/client_spec.rb
- 'spec/spec_helper.rb'
Style/OptionalBooleanParameter:
Exclude:
- lib/yoti/dynamic_share_service/policy/dynamic_policy.rb
- lib/yoti/dynamic_share_service/policy/source_constraint.rb
- lib/yoti/dynamic_share_service/policy/wanted_attribute.rb
- lib/yoti/util/validation.rb