11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2021-03-21 02:34:29 UTC using RuboCop version 1.11.0.
3+ # on 2021-03-24 02:03:11 UTC using RuboCop version 1.11.0.
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
@@ -13,12 +13,13 @@ Gemspec/RequiredRubyVersion:
1313 Exclude :
1414 - ' omniauth-identity.gemspec'
1515
16- # Offense count: 1
16+ # Offense count: 2
1717# Configuration parameters: AllowedMethods.
1818# AllowedMethods: enums
1919Lint/ConstantDefinitionInBlock :
2020 Exclude :
21- - ' spec/omniauth/identity/models/active_record_spec.rb'
21+ - ' spec_orms/active_record_spec.rb'
22+ - ' spec_orms/sequel_spec.rb'
2223
2324# Offense count: 1
2425# Configuration parameters: AllowComments.
@@ -27,11 +28,18 @@ Lint/EmptyClass:
2728 - ' spec/omniauth/identity/secure_password_spec.rb'
2829
2930# Offense count: 1
30- Lint/NestedMethodDefinition :
31+ Lint/MissingSuper :
3132 Exclude :
3233 - ' lib/omniauth/identity/secure_password.rb'
3334
3435# Offense count: 1
36+ Lint/UselessAssignment :
37+ Exclude :
38+ - ' **/*.md'
39+ - ' **/*.markdown'
40+ - ' Rakefile'
41+
42+ # Offense count: 2
3543# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
3644Metrics/AbcSize :
3745 Max : 30
@@ -40,14 +48,14 @@ Metrics/AbcSize:
4048# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
4149# IgnoredMethods: refine
4250Metrics/BlockLength :
43- Max : 28
51+ Max : 32
4452
4553# Offense count: 1
4654# Configuration parameters: CountComments, CountAsOne.
4755Metrics/ClassLength :
4856 Max : 145
4957
50- # Offense count: 7
58+ # Offense count: 9
5159# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
5260Metrics/MethodLength :
5361 Max : 20
@@ -82,19 +90,29 @@ Naming/PredicateName:
8290 - ' spec/**/*'
8391 - ' lib/omniauth/identity/secure_password.rb'
8492
85- # Offense count: 7
93+ # Offense count: 3
94+ RSpec/BeforeAfterAll :
95+ Exclude :
96+ - ' spec/spec_helper.rb'
97+ - ' spec/rails_helper.rb'
98+ - ' spec/support/**/*.rb'
99+ - ' spec_orms/couch_potato_spec.rb'
100+ - ' spec_orms/nobrainer_spec.rb'
101+ - ' spec_orms/sequel_spec.rb'
102+
103+ # Offense count: 6
86104# Configuration parameters: Prefixes.
87105# Prefixes: when, with, without
88106RSpec/ContextWording :
89107 Exclude :
90- - ' spec/omniauth/identity/model_spec.rb'
91108 - ' spec/omniauth/strategies/identity_spec.rb'
109+ - ' spec/support/shared_contexts/persistable_model.rb'
92110
93111# Offense count: 1
94112# Configuration parameters: Max.
95113RSpec/ExampleLength :
96114 Exclude :
97- - ' spec/omniauth/identity/model_spec .rb'
115+ - ' spec/support/shared_contexts/instance_with_instance_methods .rb'
98116
99117# Offense count: 3
100118RSpec/ExpectInHook :
@@ -107,18 +125,19 @@ RSpec/ExpectInHook:
107125RSpec/FilePath :
108126 Exclude :
109127 - ' spec/omniauth/identity/model_spec.rb'
110- - ' spec/omniauth/identity/models/active_record_spec.rb'
111- - ' spec/omniauth/identity/models/couch_potato_spec.rb'
112- - ' spec/omniauth/identity/models/mongoid_spec.rb'
113- - ' spec/omniauth/identity/models/nobrainer_spec.rb'
114- - ' spec/omniauth/identity/models/sequel_spec.rb'
115128 - ' spec/omniauth/identity/secure_password_spec.rb'
116129 - ' spec/omniauth/strategies/identity_spec.rb'
130+ - ' spec_orms/active_record_spec.rb'
131+ - ' spec_orms/couch_potato_spec.rb'
132+ - ' spec_orms/mongoid_spec.rb'
133+ - ' spec_orms/nobrainer_spec.rb'
134+ - ' spec_orms/sequel_spec.rb'
117135
118- # Offense count: 1
136+ # Offense count: 2
119137RSpec/LeakyConstantDeclaration :
120138 Exclude :
121- - ' spec/omniauth/identity/models/active_record_spec.rb'
139+ - ' spec_orms/active_record_spec.rb'
140+ - ' spec_orms/sequel_spec.rb'
122141
123142# Offense count: 8
124143# Configuration parameters: .
@@ -135,13 +154,11 @@ RSpec/MultipleExpectations:
135154RSpec/MultipleMemoizedHelpers :
136155 Max : 8
137156
138- # Offense count: 44
157+ # Offense count: 1
139158# Configuration parameters: IgnoreSharedExamples.
140159RSpec/NamedSubject :
141160 Exclude :
142- - ' spec/omniauth/identity/model_spec.rb'
143- - ' spec/omniauth/identity/models/couch_potato_spec.rb'
144- - ' spec/omniauth/identity/models/mongoid_spec.rb'
161+ - ' spec_orms/mongoid_spec.rb'
145162
146163# Offense count: 12
147164RSpec/NestedGroups :
@@ -152,27 +169,28 @@ RSpec/StubbedMock:
152169 Exclude :
153170 - ' spec/omniauth/strategies/identity_spec.rb'
154171
155- # Offense count: 22
172+ # Offense count: 5
156173RSpec/SubjectStub :
157174 Exclude :
158- - ' spec/omniauth/identity/model_spec.rb'
159- - ' spec/omniauth/identity/models/active_record_spec.rb'
160- - ' spec/omniauth/identity/models/couch_potato_spec.rb'
161- - ' spec/omniauth/identity/models/mongoid_spec.rb'
175+ - ' spec_orms/active_record_spec.rb'
176+ - ' spec_orms/couch_potato_spec.rb'
177+ - ' spec_orms/mongoid_spec.rb'
178+ - ' spec_orms/nobrainer_spec.rb'
179+ - ' spec_orms/sequel_spec.rb'
162180
163181# Offense count: 4
164182# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
165183RSpec/VerifiedDoubles :
166184 Exclude :
167- - ' spec/omniauth/identity/model_spec.rb'
168185 - ' spec/omniauth/strategies/identity_spec.rb'
186+ - ' spec/support/shared_contexts/model_with_class_methods.rb'
169187
170188# Offense count: 1
171189Rake/Desc :
172190 Exclude :
173191 - ' Rakefile'
174192
175- # Offense count: 7
193+ # Offense count: 10
176194Style/Documentation :
177195 Exclude :
178196 - ' **/*.md'
@@ -184,24 +202,30 @@ Style/Documentation:
184202 - ' lib/omniauth/identity/secure_password.rb'
185203 - ' spec/omniauth/identity/secure_password_spec.rb'
186204
187- # Offense count: 5
205+ # Offense count: 4
188206# Configuration parameters: MinBodyLength.
189207Style/GuardClause :
190208 Exclude :
191209 - ' lib/omniauth/identity/model.rb'
192210 - ' lib/omniauth/identity/secure_password.rb'
193211
212+ # Offense count: 1
213+ # Cop supports --auto-correct.
214+ Style/IfUnlessModifier :
215+ Exclude :
216+ - ' lib/omniauth/strategies/identity.rb'
217+
194218# Offense count: 1
195219# Configuration parameters: AllowedMethods.
196220# AllowedMethods: respond_to_missing?
197221Style/OptionalBooleanParameter :
198222 Exclude :
199223 - ' lib/omniauth/identity/model.rb'
200224
201- # Offense count: 1
225+ # Offense count: 4
202226# Cop supports --auto-correct.
203227# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
204228# URISchemes: http, https
205229# IgnoredPatterns: (?-mix:^\#)
206230Layout/LineLength :
207- Max : 123
231+ Max : 138
0 commit comments