codeclimate/ruby-test-reporter

View on GitHub
lib/code_climate/test_reporter/client.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method has too many lines. [26/10]
Open

      def batch_post_results(files)
        uri = URI.parse("#{host}/test_reports/batch")
        http = http_client(uri)

        boundary = SecureRandom.uuid

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

      def post_results(result)
        uri = URI.parse("#{host}/test_reports")
        http = http_client(uri)

        request = Net::HTTP::Post.new(uri.path)

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

      def batch_post_results(files)
        uri = URI.parse("#{host}/test_reports/batch")
        http = http_client(uri)

        boundary = SecureRandom.uuid
Severity: Minor
Found in lib/code_climate/test_reporter/client.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status