Skip to content

Commit

Permalink
Exclude test/sendgrid/test_sendgrid-ruby.rb from Metrics/ClassLength …
Browse files Browse the repository at this point in the history
…rule in config of rubocop
  • Loading branch information
hoangtuanictvn committed Jan 15, 2021
1 parent 3a1fe7d commit 37cb181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Metrics/BlockLength:
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 2006
Exclude:
- 'test/sendgrid/test_sendgrid-ruby.rb'

# Offense count: 41
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
Expand Down
1 change: 0 additions & 1 deletion test/sendgrid/test_sendgrid-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def test_init_when_http_options_is_given

sg = SendGrid::API.new(api_key: 'SENDGRID_API_KEY', host: 'https://api.test.com', request_headers: headers, version: 'v3', http_options: http_options)
sg.client.get

assert_equal(40, sg.client.http.open_timeout)
assert_equal(40, sg.client.http.read_timeout)
end
Expand Down

0 comments on commit 37cb181

Please sign in to comment.