1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2015-08-31 04:23:33 -0500 using RuboCop version 0.33 .0.
3
+ # on 2015-09-20 17:56:22 -0500 using RuboCop version 0.34 .0.
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
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
- # Offense count: 1
10
- # Configuration parameters: AllowSafeAssignment.
11
- Lint/AssignmentInCondition :
12
- Exclude :
13
- - ' lib/active_model/serializer/adapter/json_api.rb'
14
-
15
- # Offense count: 1
16
- Lint/EmptyEnsure :
17
- Exclude :
18
- - ' test/serializers/adapter_for_test.rb'
19
-
20
- # Offense count: 1
9
+ # Offense count: 2
21
10
Lint/HandleExceptions :
22
11
Exclude :
23
12
- ' Rakefile'
@@ -28,11 +17,10 @@ Lint/UnusedBlockArgument:
28
17
Exclude :
29
18
- ' lib/active_model/serializer/adapter/json_api/fragment_cache.rb'
30
19
31
- # Offense count: 9
20
+ # Offense count: 7
32
21
# Cop supports --auto-correct.
33
22
Lint/UnusedMethodArgument :
34
23
Exclude :
35
- - ' lib/active_model/serializer/adapter.rb'
36
24
- ' lib/active_model/serializer/adapter/null.rb'
37
25
- ' lib/active_model/serializer/pass_through_serializer.rb'
38
26
- ' test/fixtures/poro.rb'
@@ -43,20 +31,19 @@ Lint/UselessAccessModifier:
43
31
Exclude :
44
32
- ' lib/active_model/serializable_resource.rb'
45
33
46
- # Offense count: 3
34
+ # Offense count: 2
47
35
Lint/UselessAssignment :
48
36
Exclude :
49
37
- ' bench/perf.rb'
50
38
- ' lib/active_model/serializer/adapter/json_api/fragment_cache.rb'
51
- - ' test/test_helper.rb'
52
39
53
40
# Offense count: 1
54
41
# Configuration parameters: EnforcedStyle, SupportedStyles.
55
42
Rails/Date :
56
43
Exclude :
57
44
- ' test/fixtures/poro.rb'
58
45
59
- # Offense count: 8
46
+ # Offense count: 4
60
47
# Configuration parameters: EnforcedStyle, SupportedStyles.
61
48
Rails/TimeZone :
62
49
Exclude :
@@ -78,20 +65,13 @@ Style/AndOr:
78
65
Exclude :
79
66
- ' lib/active_model/serializer/lint.rb'
80
67
81
- # Offense count: 6
82
- # Cop supports --auto-correct.
83
- # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
84
- Style/BlockDelimiters :
85
- Enabled : false
86
-
87
- # Offense count: 46
68
+ # Offense count: 25
88
69
# Cop supports --auto-correct.
89
70
# Configuration parameters: EnforcedStyle, SupportedStyles.
90
71
Style/BracesAroundHashParameters :
91
72
Exclude :
92
73
- ' test/action_controller/adapter_selector_test.rb'
93
74
- ' test/action_controller/json_api/pagination_test.rb'
94
- - ' test/action_controller/serialization_test.rb'
95
75
- ' test/adapter/json_api/linked_test.rb'
96
76
- ' test/adapter/json_api/pagination_links_test.rb'
97
77
- ' test/adapter/null_test.rb'
@@ -103,9 +83,8 @@ Style/BracesAroundHashParameters:
103
83
- ' test/serializers/attributes_test.rb'
104
84
- ' test/serializers/fieldset_test.rb'
105
85
- ' test/serializers/root_test.rb'
106
- - ' test/serializers/urls_test.rb'
107
86
108
- # Offense count: 167
87
+ # Offense count: 174
109
88
# Configuration parameters: EnforcedStyle, SupportedStyles.
110
89
Style/ClassAndModuleChildren :
111
90
Enabled : false
@@ -126,12 +105,11 @@ Style/EachWithObject:
126
105
Exclude :
127
106
- ' lib/active_model/serializer/fieldset.rb'
128
107
129
- # Offense count: 3
108
+ # Offense count: 2
130
109
# Configuration parameters: MinBodyLength.
131
110
Style/GuardClause :
132
111
Exclude :
133
112
- ' lib/active_model/serializer.rb'
134
- - ' lib/active_model/serializer/adapter/json_api.rb'
135
113
- ' test/capture_warnings.rb'
136
114
137
115
# Offense count: 12
@@ -155,34 +133,12 @@ Style/IndentArray:
155
133
Style/IndentHash :
156
134
Enabled : false
157
135
158
- # Offense count: 1
159
- # Cop supports --auto-correct.
160
- # Configuration parameters: EnforcedStyle, SupportedStyles.
161
- Style/IndentationConsistency :
162
- Exclude :
163
- - ' test/action_controller/serialization_scope_name_test.rb'
164
-
165
- # Offense count: 2
166
- # Cop supports --auto-correct.
167
- # Configuration parameters: Width.
168
- Style/IndentationWidth :
169
- Exclude :
170
- - ' lib/active_model/serializable_resource.rb'
171
- - ' lib/active_model/serializer/fieldset.rb'
172
-
173
136
# Offense count: 1
174
137
# Cop supports --auto-correct.
175
138
Style/Lambda :
176
139
Exclude :
177
140
- ' lib/active_model/serializer.rb'
178
141
179
- # Offense count: 2
180
- # Cop supports --auto-correct.
181
- Style/MethodCallParentheses :
182
- Exclude :
183
- - ' lib/active_model/serializer/adapter/json.rb'
184
- - ' lib/active_model/serializer/adapter/json_api.rb'
185
-
186
142
# Offense count: 1
187
143
# Cop supports --auto-correct.
188
144
# Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -201,45 +157,29 @@ Style/NegatedIf:
201
157
Exclude :
202
158
- ' lib/action_controller/serialization.rb'
203
159
204
- # Offense count: 1
205
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
206
- Style/Next :
207
- Exclude :
208
- - ' lib/active_model/serializer/adapter/json_api.rb'
209
-
210
160
# Offense count: 1
211
161
# Cop supports --auto-correct.
212
162
Style/NumericLiterals :
213
163
MinDigits : 7
214
164
215
- # Offense count: 2
216
- # Cop supports --auto-correct.
217
- # Configuration parameters: PreferredDelimiters.
218
- Style/PercentLiteralDelimiters :
219
- Exclude :
220
- - ' active_model_serializers.gemspec'
221
-
222
165
# Offense count: 2
223
166
# Cop supports --auto-correct.
224
167
Style/PerlBackrefs :
225
168
Exclude :
226
169
- ' test/fixtures/poro.rb'
227
170
- ' test/serializers/associations_test.rb'
228
171
229
- # Offense count: 6
172
+ # Offense count: 3
230
173
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
231
174
Style/PredicateName :
232
175
Exclude :
233
- - ' lib/active_model/serializer/adapter.rb'
234
- - ' lib/active_model/serializer/adapter/json_api.rb'
235
176
- ' lib/active_model/serializer/associations.rb'
236
177
- ' test/action_controller/json_api/linked_test.rb'
237
178
238
- # Offense count: 7
179
+ # Offense count: 5
239
180
# Cop supports --auto-correct.
240
181
Style/RedundantSelf :
241
182
Exclude :
242
- - ' lib/active_model/serializer.rb'
243
183
- ' lib/active_model/serializer/associations.rb'
244
184
- ' test/fixtures/poro.rb'
245
185
@@ -250,13 +190,11 @@ Style/Semicolon:
250
190
Exclude :
251
191
- ' lib/active_model/serializer/fieldset.rb'
252
192
253
- # Offense count: 6
193
+ # Offense count: 3
254
194
# Cop supports --auto-correct.
255
195
# Configuration parameters: EnforcedStyle, SupportedStyles.
256
196
Style/SignalException :
257
197
Exclude :
258
- - ' lib/active_model/serializer.rb'
259
- - ' lib/active_model/serializer/adapter.rb'
260
198
- ' lib/active_model/serializer/fieldset.rb'
261
199
- ' lib/active_model/serializer/pass_through_serializer.rb'
262
200
@@ -299,7 +237,7 @@ Style/TrailingBlankLines:
299
237
- ' test/serializers/fieldset_test.rb'
300
238
- ' test/support/stream_capture.rb'
301
239
302
- # Offense count: 6
240
+ # Offense count: 5
303
241
# Cop supports --auto-correct.
304
242
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
305
243
Style/TrailingComma :
0 commit comments