Skip to content

Commit cbff6e8

Browse files
committed
Update rubocop-rails to 2.19
1 parent 56c7fb2 commit cbff6e8

File tree

3 files changed

+47
-4
lines changed

3 files changed

+47
-4
lines changed

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PATH
33
specs:
44
ruboconf-rails (1.10.0)
55
ruboconf (~> 1.11.0)
6-
rubocop-rails (~> 2.15.0)
6+
rubocop-rails (~> 2.19)
77

88
GEM
99
remote: https://rubygems.org/
@@ -45,10 +45,10 @@ GEM
4545
rubocop-performance (1.17.1)
4646
rubocop (>= 1.7.0, < 2.0)
4747
rubocop-ast (>= 0.4.0)
48-
rubocop-rails (2.15.2)
48+
rubocop-rails (2.19.1)
4949
activesupport (>= 4.2.0)
5050
rack (>= 1.1)
51-
rubocop (>= 1.7.0, < 2.0)
51+
rubocop (>= 1.33.0, < 2.0)
5252
ruby-progressbar (1.13.0)
5353
tzinfo (2.0.6)
5454
concurrent-ruby (~> 1.0)

cops/rails.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1+
Rails/ActionControllerFlashBeforeRender:
2+
Enabled: true
3+
14
Rails/ActionControllerTestCase:
25
Enabled: true
36

7+
Rails/ActionOrder:
8+
ExpectedOrder:
9+
- index
10+
- show
11+
- new
12+
- create
13+
- edit
14+
- update
15+
- destroy
16+
417
Rails/ActiveRecordCallbacksOrder:
518
Enabled: true
619

20+
Rails/ActiveSupportOnLoad:
21+
Enabled: true
22+
723
Rails/AddColumnIndex:
824
Enabled: true
925

@@ -52,6 +68,9 @@ Rails/FilePath:
5268
Rails/FindById:
5369
Enabled: true
5470

71+
Rails/FreezeTime:
72+
Enabled: true
73+
5574
Rails/HasManyOrHasOneDependent:
5675
Enabled: true
5776

@@ -64,6 +83,9 @@ Rails/I18nLocaleAssignment:
6483
Rails/I18nLocaleTexts:
6584
Enabled: true
6685

86+
Rails/IgnoredColumnsAssignment:
87+
Enabled: true
88+
6789
Rails/Inquiry:
6890
Enabled: true
6991

@@ -100,9 +122,15 @@ Rails/RenderInline:
100122
Rails/RenderPlainText:
101123
Enabled: true
102124

125+
Rails/ResponseParsedBody:
126+
Enabled: true
127+
103128
Rails/RootJoinChain:
104129
Enabled: true
105130

131+
Rails/RootPathnameMethods:
132+
Enabled: true
133+
106134
Rails/RootPublicPath:
107135
Enabled: true
108136

@@ -115,13 +143,22 @@ Rails/SquishedSQLHeredocs:
115143
Rails/StripHeredoc:
116144
Enabled: true
117145

146+
Rails/ThreeStateBooleanColumn:
147+
Enabled: true
148+
118149
Rails/TimeZoneAssignment:
119150
Enabled: true
120151

121152
Rails/ToFormattedS:
122153
Enabled: true
123154
EnforcedStyle: to_formatted_s
124155

156+
Rails/TopLevelHashWithIndifferentAccess:
157+
Enabled: true
158+
159+
Rails/ToSWithArgument:
160+
Enabled: true
161+
125162
Rails/TransactionExitStatement:
126163
Enabled: true
127164

@@ -134,5 +171,11 @@ Rails/WhereEquals:
134171
Rails/WhereExists:
135172
Enabled: true
136173

174+
Rails/WhereMissing:
175+
Enabled: true
176+
137177
Rails/WhereNot:
138178
Enabled: true
179+
180+
Rails/WhereNotWithMultipleConditions:
181+
Enabled: false

ruboconf-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
2323
end
2424

2525
spec.add_dependency 'ruboconf', '~> 1.11.0'
26-
spec.add_dependency 'rubocop-rails', '~> 2.15.0'
26+
spec.add_dependency 'rubocop-rails', '~> 2.19'
2727
spec.metadata['rubygems_mfa_required'] = 'true'
2828
end

0 commit comments

Comments
 (0)