File tree Expand file tree Collapse file tree 3 files changed +19
-20
lines changed Expand file tree Collapse file tree 3 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,20 @@ AllCops:
4
4
Exclude :
5
5
- config/initializers/forbidden_yaml.rb
6
6
- !ruby/regexp /(vendor|bundle|bin|db|tmp)\/.*/
7
- RunRailsCops : true
8
7
DisplayCopNames : true
9
8
DisplayStyleGuide : true
10
9
10
+ Rails :
11
+ Enabled : true
12
+
11
13
Lint/NestedMethodDefinition :
12
14
Enabled : false
13
15
Exclude :
14
16
- test/action_controller/serialization_test.rb
15
17
18
+ Style/Alias :
19
+ EnforcedStyle : prefer_alias
20
+
16
21
Style/StringLiterals :
17
22
EnforcedStyle : single_quotes
18
23
@@ -59,6 +64,18 @@ Style/BlockDelimiters:
59
64
Enabled : true
60
65
EnforcedStyle : line_count_based
61
66
67
+ Style/SignalException :
68
+ EnforcedStyle : semantic
69
+
70
+ Style/TrailingCommaInLiteral :
71
+ EnforcedStyleForMultiline : no_comma
72
+
73
+ Style/ConditionalAssignment :
74
+ Enabled : false
75
+
76
+ Style/DotPosition :
77
+ EnforcedStyle : leading
78
+
62
79
# ######### test_helper.rb sanity
63
80
Style/EndBlock :
64
81
Exclude :
Original file line number Diff line number Diff line change @@ -177,14 +177,6 @@ Style/Semicolon:
177
177
Exclude :
178
178
- ' lib/active_model/serializer/fieldset.rb'
179
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
180
# Offense count: 1
189
181
# Cop supports --auto-correct.
190
182
# Configuration parameters: AllowIfMethodIsEmpty.
@@ -223,16 +215,6 @@ Style/TrailingBlankLines:
223
215
- ' test/serializers/cache_test.rb'
224
216
- ' test/serializers/fieldset_test.rb'
225
217
226
- # Offense count: 5
227
- # Cop supports --auto-correct.
228
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
229
- Style/TrailingComma :
230
- Exclude :
231
- - ' test/action_controller/adapter_selector_test.rb'
232
- - ' test/action_controller/serialization_test.rb'
233
- - ' test/adapter/json_api/belongs_to_test.rb'
234
- - ' test/adapter/json_api/linked_test.rb'
235
-
236
218
# Offense count: 1
237
219
Style/UnlessElse :
238
220
Exclude :
Original file line number Diff line number Diff line change @@ -44,5 +44,5 @@ group :test do
44
44
end
45
45
46
46
group :development , :test do
47
- gem 'rubocop' , '~> 0.34.0 ' , require : false
47
+ gem 'rubocop' , '~> 0.36 ' , require : false
48
48
end
You can’t perform that action at this time.
0 commit comments