Skip to content

Commit 0f817fb

Browse files
committed
fix rubocops
1 parent 43ace6d commit 0f817fb

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

.rubocop.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ Layout/LineLength:
1212
- '(\A|\s)/.*?/'
1313
Metrics/BlockLength:
1414
AllowedMethods: ['describe', 'context', 'before', 'it']
15+
Metrics/ClassLength:
16+
Enabled: false
17+
Metrics/CyclomaticComplexity:
18+
Enabled: false
1519
Metrics/MethodLength:
16-
Max: 30
20+
Enabled: false
1721
Metrics/ModuleLength:
18-
Max: 200
22+
Enabled: false
1923
Metrics/ParameterLists:
2024
Max: 6
2125
Naming/ConstantName:

lib/workos/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def user_agent
8686
].join('; ')
8787
end
8888

89-
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity:
89+
# rubocop:disable Metrics/AbcSize:
9090
def handle_error_response(response:)
9191
http_status = response.code.to_i
9292
json = JSON.parse(response.body)

lib/workos/mfa.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def get_factor(
3232
WorkOS::Factor.new(response.body)
3333
end
3434

35-
# rubocop:disable Metrics/CyclomaticComplexity
3635
# rubocop:disable Metrics/PerceivedComplexity
3736
def validate_args(
3837
type:,

lib/workos/session.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def authenticate
6464
# @return [Hash] A hash containing a new sealed session, the authentication response,
6565
# and a reason if the refresh failed
6666
# rubocop:disable Metrics/AbcSize
67-
# rubocop:disable Metrics/CyclomaticComplexity
6867
# rubocop:disable Metrics/PerceivedComplexity
6968
def refresh(options = nil)
7069
cookie_password = options.nil? || options[:cookie_password].nil? ? @cookie_password : options[:cookie_password]

lib/workos/user_management.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module WorkOS
77
# The UserManagement module provides convenience methods for working with the
88
# WorkOS User platform. You'll need a valid API key.
99

10-
# rubocop:disable Metrics/ModuleLength
1110
module UserManagement
1211
module Types
1312
# The ProviderEnum is a declaration of a

spec/lib/workos/user_management_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@
352352
expect(user.email).to eq('jane@example.com')
353353
expect(user.email_verified).to eq(false)
354354
end
355-
356355
end
357356

358357
context 'with an invalid payload' do

0 commit comments

Comments
 (0)