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:
44 Exclude :
55 - config/initializers/forbidden_yaml.rb
66 - !ruby/regexp /(vendor|bundle|bin|db|tmp)\/.*/
7- RunRailsCops : true
87 DisplayCopNames : true
98 DisplayStyleGuide : true
109
10+ Rails :
11+ Enabled : true
12+
1113Lint/NestedMethodDefinition :
1214 Enabled : false
1315 Exclude :
1416 - test/action_controller/serialization_test.rb
1517
18+ Style/Alias :
19+ EnforcedStyle : prefer_alias
20+
1621Style/StringLiterals :
1722 EnforcedStyle : single_quotes
1823
@@ -59,6 +64,18 @@ Style/BlockDelimiters:
5964 Enabled : true
6065 EnforcedStyle : line_count_based
6166
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+
6279# ######### test_helper.rb sanity
6380Style/EndBlock :
6481 Exclude :
Original file line number Diff line number Diff line change @@ -177,14 +177,6 @@ Style/Semicolon:
177177 Exclude :
178178 - ' lib/active_model/serializer/fieldset.rb'
179179
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-
188180# Offense count: 1
189181# Cop supports --auto-correct.
190182# Configuration parameters: AllowIfMethodIsEmpty.
@@ -223,16 +215,6 @@ Style/TrailingBlankLines:
223215 - ' test/serializers/cache_test.rb'
224216 - ' test/serializers/fieldset_test.rb'
225217
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-
236218# Offense count: 1
237219Style/UnlessElse :
238220 Exclude :
Original file line number Diff line number Diff line change @@ -44,5 +44,5 @@ group :test do
4444end
4545
4646group :development , :test do
47- gem 'rubocop' , '~> 0.34.0 ' , require : false
47+ gem 'rubocop' , '~> 0.36 ' , require : false
4848end
You can’t perform that action at this time.
0 commit comments