1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2015-09-20 17:56:22 -0500 using RuboCop version 0.34.0 .
3
+ # on 2016-03-08 22:29:52 +0100 using RuboCop version 0.37.2 .
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
@@ -13,49 +13,31 @@ Lint/HandleExceptions:
13
13
14
14
# Offense count: 2
15
15
# Cop supports --auto-correct.
16
- Lint/UnusedBlockArgument :
17
- Exclude :
18
- - ' lib/active_model/serializer/adapter/json_api/fragment_cache.rb'
19
-
20
- # Offense count: 7
21
- # Cop supports --auto-correct.
16
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
22
17
Lint/UnusedMethodArgument :
23
18
Exclude :
24
- - ' lib/active_model/serializer/adapter/null.rb'
25
- - ' lib/active_model/serializer/pass_through_serializer.rb'
26
- - ' test/fixtures/poro.rb'
27
19
- ' test/lint_test.rb'
28
20
29
- # Offense count: 2
30
- Lint/UselessAssignment :
31
- Exclude :
32
- - ' bench/perf.rb'
33
- - ' lib/active_model/serializer/adapter/json_api/fragment_cache.rb'
34
-
35
- # Offense count: 1
36
- # Configuration parameters: EnforcedStyle, SupportedStyles.
37
- Rails/Date :
38
- Exclude :
39
- - ' test/fixtures/poro.rb'
40
-
41
21
# Offense count: 4
42
22
# Configuration parameters: EnforcedStyle, SupportedStyles.
23
+ # SupportedStyles: strict, flexible
43
24
Rails/TimeZone :
44
25
Exclude :
45
26
- ' test/action_controller/serialization_test.rb'
46
- - ' test/fixtures/poro.rb'
47
27
- ' test/serializers/cache_test.rb'
48
28
49
29
# Offense count: 16
50
30
# Cop supports --auto-correct.
51
31
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
32
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
52
33
Style/AlignHash :
53
34
Exclude :
54
35
- ' test/action_controller/json_api/pagination_test.rb'
55
36
56
- # Offense count: 25
37
+ # Offense count: 27
57
38
# Cop supports --auto-correct.
58
39
# Configuration parameters: EnforcedStyle, SupportedStyles.
40
+ # SupportedStyles: braces, no_braces, context_dependent
59
41
Style/BracesAroundHashParameters :
60
42
Exclude :
61
43
- ' test/action_controller/adapter_selector_test.rb'
@@ -67,17 +49,16 @@ Style/BracesAroundHashParameters:
67
49
- ' test/collection_serializer_test.rb'
68
50
- ' test/serializable_resource_test.rb'
69
51
- ' test/serializers/associations_test.rb'
70
- - ' test/serializers/attribute_test.rb'
71
52
- ' test/serializers/attributes_test.rb'
72
- - ' test/serializers/fieldset_test.rb'
73
53
- ' test/serializers/root_test.rb'
74
54
75
- # Offense count: 174
55
+ # Offense count: 271
76
56
# Configuration parameters: EnforcedStyle, SupportedStyles.
57
+ # SupportedStyles: nested, compact
77
58
Style/ClassAndModuleChildren :
78
59
Enabled : false
79
60
80
- # Offense count: 5
61
+ # Offense count: 6
81
62
# Cop supports --auto-correct.
82
63
Style/CommentIndentation :
83
64
Exclude :
@@ -89,34 +70,29 @@ Style/DoubleNegation:
89
70
- ' lib/active_model/serializable_resource.rb'
90
71
91
72
# Offense count: 1
92
- Style/EachWithObject :
93
- Exclude :
94
- - ' lib/active_model/serializer/fieldset.rb'
95
-
96
- # Offense count: 2
97
73
# Configuration parameters: MinBodyLength.
98
74
Style/GuardClause :
99
75
Exclude :
100
76
- ' lib/active_model/serializer.rb'
101
77
102
- # Offense count: 12
78
+ # Offense count: 58
103
79
# Cop supports --auto-correct.
104
80
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
81
+ # SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
105
82
Style/HashSyntax :
106
83
Enabled : false
107
84
108
- # Offense count: 9
85
+ # Offense count: 4
109
86
# Cop supports --auto-correct.
87
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
88
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
110
89
Style/IndentArray :
111
- Exclude :
112
- - ' test/adapter/json/has_many_test.rb'
113
- - ' test/adapter/json_api/json_api_test.rb'
114
- - ' test/adapter/json_api/pagination_links_test.rb'
115
- - ' test/adapter/json_test.rb'
90
+ Enabled : false
116
91
117
- # Offense count: 8
92
+ # Offense count: 10
118
93
# Cop supports --auto-correct.
119
- # Configuration parameters: EnforcedStyle, SupportedStyles.
94
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
95
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
120
96
Style/IndentHash :
121
97
Enabled : false
122
98
@@ -129,12 +105,14 @@ Style/Lambda:
129
105
# Offense count: 1
130
106
# Cop supports --auto-correct.
131
107
# Configuration parameters: EnforcedStyle, SupportedStyles.
108
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
132
109
Style/MethodDefParentheses :
133
110
Enabled : false
134
111
135
- # Offense count: 3
112
+ # Offense count: 1
136
113
# Cop supports --auto-correct.
137
- # Configuration parameters: EnforcedStyle, SupportedStyles.
114
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
115
+ # SupportedStyles: aligned, indented
138
116
Style/MultilineOperationIndentation :
139
117
Enabled : false
140
118
@@ -146,95 +124,44 @@ Style/NegatedIf:
146
124
147
125
# Offense count: 1
148
126
# Cop supports --auto-correct.
149
- Style/NumericLiterals :
150
- MinDigits : 7
151
-
152
- # Offense count: 2
153
- # Cop supports --auto-correct.
154
127
Style/PerlBackrefs :
155
128
Exclude :
156
129
- ' test/fixtures/poro.rb'
157
- - ' test/serializers/associations_test.rb'
158
130
159
131
# Offense count: 3
160
- # Configuration parameters: NamePrefix, NamePrefixBlacklist.
132
+ # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
133
+ # NamePrefix: is_, has_, have_
134
+ # NamePrefixBlacklist: is_, has_, have_
135
+ # NameWhitelist: is_a?
161
136
Style/PredicateName :
162
137
Exclude :
163
138
- ' lib/active_model/serializer/associations.rb'
164
139
- ' test/action_controller/json_api/linked_test.rb'
165
140
166
- # Offense count: 5
141
+ # Offense count: 1
167
142
# Cop supports --auto-correct.
168
143
Style/RedundantSelf :
169
144
Exclude :
170
- - ' lib/active_model/serializer/associations.rb'
171
145
- ' test/fixtures/poro.rb'
172
146
173
- # Offense count: 1
174
- # Cop supports --auto-correct.
175
- # Configuration parameters: AllowAsExpressionSeparator.
176
- Style/Semicolon :
177
- Exclude :
178
- - ' lib/active_model/serializer/fieldset.rb'
179
-
180
- # Offense count: 3
181
- # Cop supports --auto-correct.
182
- # Configuration parameters: EnforcedStyle, SupportedStyles.
183
- Style/SignalException :
184
- Exclude :
185
- - ' lib/active_model/serializer/fieldset.rb'
186
- - ' lib/active_model/serializer/pass_through_serializer.rb'
187
-
188
147
# Offense count: 1
189
148
# Cop supports --auto-correct.
190
149
# Configuration parameters: AllowIfMethodIsEmpty.
191
150
Style/SingleLineMethods :
192
151
Exclude :
193
152
- ' test/serializers/serializer_for_test.rb'
194
153
195
- # Offense count: 2
154
+ # Offense count: 4
196
155
# Cop supports --auto-correct.
197
156
# Configuration parameters: EnforcedStyle, SupportedStyles.
157
+ # SupportedStyles: single_quotes, double_quotes
198
158
Style/StringLiteralsInInterpolation :
199
159
Enabled : false
200
160
201
- # Offense count: 1
202
- Style/StructInheritance :
203
- Exclude :
204
- - ' bench/perf.rb'
205
-
206
161
# Offense count: 1
207
162
# Cop supports --auto-correct.
208
- # Configuration parameters: IgnoredMethods.
209
- Style/SymbolProc :
210
- Exclude :
211
- - ' lib/generators/serializer/serializer_generator.rb'
212
-
213
- # Offense count: 8
214
- # Cop supports --auto-correct.
215
163
# Configuration parameters: EnforcedStyle, SupportedStyles.
164
+ # SupportedStyles: final_newline, final_blank_line
216
165
Style/TrailingBlankLines :
217
166
Exclude :
218
- - ' lib/active_model/serializer/pass_through_serializer.rb'
219
- - ' lib/generators/serializer/serializer_generator.rb'
220
- - ' test/adapter/fragment_cache_test.rb'
221
- - ' test/adapter/json_api/json_api_test.rb'
222
167
- ' test/adapter/null_test.rb'
223
- - ' test/serializers/cache_test.rb'
224
- - ' test/serializers/fieldset_test.rb'
225
- - ' test/support/stream_capture.rb'
226
-
227
- # Offense count: 5
228
- # Cop supports --auto-correct.
229
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
230
- Style/TrailingComma :
231
- Exclude :
232
- - ' test/action_controller/adapter_selector_test.rb'
233
- - ' test/action_controller/serialization_test.rb'
234
- - ' test/adapter/json_api/belongs_to_test.rb'
235
- - ' test/adapter/json_api/linked_test.rb'
236
-
237
- # Offense count: 1
238
- Style/UnlessElse :
239
- Exclude :
240
- - ' lib/active_model/serializer.rb'
0 commit comments