lib/code_climate/test_reporter/client.rb
Method has too many lines. [26/10] Open
Open
def batch_post_results(files)
uri = URI.parse("#{host}/test_reports/batch")
http = http_client(uri)
boundary = SecureRandom.uuid
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Method has too many lines. [17/10] Open
Open
def post_results(result)
uri = URI.parse("#{host}/test_reports")
http = http_client(uri)
request = Net::HTTP::Post.new(uri.path)
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Method batch_post_results
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def batch_post_results(files)
uri = URI.parse("#{host}/test_reports/batch")
http = http_client(uri)
boundary = SecureRandom.uuid