forked from gojek/wrest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
123 lines (94 loc) · 2.31 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
require:
- rubocop-rake
- rubocop-rspec
AllCops:
NewCops: enable
TargetRubyVersion: 2.6
Exclude:
- lib/active_support/**/*
- vendor/**/*
Layout/LineLength:
Max: 180
Lint/ConstantDefinitionInBlock:
Exclude:
- spec/wrest/components/mutators/base_spec.rb
Lint/EmptyBlock:
Exclude:
- spec/wrest/callback_spec.rb
Lint/ToEnumArguments:
Exclude:
- lib/wrest/hash_with_indifferent_access.rb
Lint/UselessAssignment:
Exclude:
- spec/**/*_spec.rb
Metrics/BlockLength:
CountAsOne: [ 'array', 'heredoc', 'hash' ]
Exclude:
- Rakefile
Metrics/AbcSize:
Exclude:
- lib/wrest/components/translators/xml/conversions.rb
- spec/**/*_spec.rb
- spec/support/factories.rb
Metrics/ClassLength:
Exclude:
- lib/wrest/uri.rb
- lib/wrest/native/response.rb
- lib/wrest/hash_with_indifferent_access.rb
- spec/sample_app/lib/sample_app.rb
Metrics/CyclomaticComplexity:
Exclude:
- lib/wrest/components/translators/xml/conversions.rb
Metrics/MethodLength:
CountAsOne: [ 'array', 'heredoc', 'hash' ]
Exclude:
- lib/wrest/hash_with_indifferent_access.rb
- lib/wrest/components/translators/xml/conversions.rb
- spec/**/*_spec.rb
- spec/support/*.rb
Metrics/ParameterLists:
MaxOptionalParameters: 4
Metrics/PerceivedComplexity:
Exclude:
- lib/wrest/components/translators/xml/conversions.rb
Naming/ClassAndModuleCamelCase:
Exclude:
- lib/wrest/xml_mini/*.rb
Naming/ConstantName:
Enabled: false
Naming/MemoizedInstanceVariableName:
Exclude:
- lib/wrest/native/response.rb
Naming/VariableNumber:
Exclude:
- Gemfile
RSpec/BeforeAfterAll:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/ExampleLength:
CountAsOne: [ 'array', 'hash', 'heredoc' ]
Enabled: false
RSpec/MessageSpies:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Exclude:
- spec/wrest/cache_proxy_spec.rb
RSpec/NestedGroups:
Max: 6
RSpec/PredicateMatcher:
Exclude:
- spec/wrest/components/container_spec.rb
- spec/wrest/components/container/alias_accessors_spec.rb
RSpec/StubbedMock:
Enabled: false
RSpec/VerifiedDoubles:
Enabled: false
Style/Documentation:
Enabled: false
Style/HashLikeCase:
Exclude:
- examples/facebook_auth/facebook_auth.rb
- examples/wow_realm_status.rb