Skip to content

Commit 97003b9

Browse files
committed
Fix style strings & arguments
1 parent 2eca054 commit 97003b9

File tree

4 files changed

+3
-27
lines changed

4 files changed

+3
-27
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -486,30 +486,6 @@ Style/StringConcatenation:
486486
- 'lib/sorcery/providers/github.rb'
487487
- 'spec/controllers/controller_oauth2_spec.rb'
488488

489-
# Offense count: 7
490-
# This cop supports safe autocorrection (--autocorrect).
491-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
492-
# SupportedStyles: single_quotes, double_quotes
493-
Style/StringLiterals:
494-
Exclude:
495-
- 'spec/controllers/controller_oauth2_spec.rb'
496-
- 'spec/sorcery_crypto_providers_spec.rb'
497-
498-
# Offense count: 2
499-
# This cop supports safe autocorrection (--autocorrect).
500-
Style/SuperArguments:
501-
Exclude:
502-
- 'lib/sorcery/providers/line.rb'
503-
- 'lib/sorcery/providers/microsoft.rb'
504-
505-
# Offense count: 1
506-
# This cop supports safe autocorrection (--autocorrect).
507-
# Configuration parameters: EnforcedStyle, MinSize.
508-
# SupportedStyles: percent, brackets
509-
Style/SymbolArray:
510-
Exclude:
511-
- 'Rakefile'
512-
513489
# Offense count: 1
514490
# This cop supports unsafe autocorrection (--autocorrect-all).
515491
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.

lib/sorcery/providers/line.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def login_url(_params, _session)
4040
def authorize_url(options = {})
4141
options.merge!({ connection_opts: { params: { bot_prompt: bot_prompt } } }) if bot_prompt.present?
4242

43-
super(options)
43+
super
4444
end
4545

4646
# tries to login the user from access token

lib/sorcery/providers/microsoft.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def authorize_url(options = {})
2828
response_type: 'code'
2929
}
3030
options.merge!(oauth_params)
31-
super(options)
31+
super
3232
end
3333

3434
def get_user_hash(access_token)

spec/sorcery_crypto_providers_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
end
218218
end
219219

220-
context "when pepper is an empty string (default)" do
220+
context 'when pepper is an empty string (default)' do
221221
before(:each) do
222222
Sorcery::CryptoProviders::BCrypt.pepper = ''
223223
@digest = Sorcery::CryptoProviders::BCrypt.encrypt(@tokens) # a BCrypt::Password object

0 commit comments

Comments
 (0)