Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit 4ed1f78

Browse files
committed
Remove rubocop method length verification
1 parent 523e169 commit 4ed1f78

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ Style/FrozenStringLiteralComment:
1111
Enabled: false
1212
Metrics/BlockLength:
1313
Enabled: false
14+
Metrics/MethodLength:
15+
Enabled: false

lookups/lookup-get-basic-example-1/lookup-get-basic-example-1.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
puts number.carrier['type']
1414
puts number.carrier['name']
1515
rescue Twilio::REST::RestError => e
16-
if e.status_code === 404 # rubocop:disable Style/CaseEquality
16+
if e.status_code == 404
1717
puts 'No carrier information'
1818
else
1919
puts e.message

security/signature_validation_tests/signature_validation_tests.5.x.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
'To' => '+18005551212'
1818
}
1919

20-
# rubocop:disable Metrics/MethodLength
2120
def test_url(method, url, params, valid)
2221
if method == 'GET'
2322
url += "?#{URI.encode_www_form(params)}"
@@ -34,7 +33,6 @@ def test_url(method, url, params, valid)
3433
valid_str = valid ? 'valid' : 'invalid'
3534
puts "HTTP #{method} with #{valid_str} signature returned #{response.code}"
3635
end
37-
# rubocop:enable Metrics/MethodLength
3836

3937
test_url('GET', url, params, true)
4038
test_url('GET', url, params, false)

two-factor-authentication/verify-webhook/verify-webhook.5.x.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'uri'
22

3-
# rubocop:disable Style/Documentation
3+
# Class to verify an Incoming Two-factor Authentication Webhook
44
class CallbackVerifier
55
# @param [request] A Rails request object
66
# @param [api_key] The API key used to sign the request
@@ -30,4 +30,3 @@ def verify_callback(request, api_key)
3030
hash == signature
3131
end
3232
end
33-
# rubocop:enable Style/Documentation

0 commit comments

Comments
 (0)