cloudinsight/opentsdb-ruby

View on GitHub
lib/opentsdb/client.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for query is too high. [21.24/15]
Open

    def query
      [].tap do |results|
        query_commads.each do |query_commad|
          start = Time.now
          Opentsdb.logger.debug "[OpenTSDB] query: #{query_commad.to_json}"
Severity: Minor
Found in lib/opentsdb/client.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

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

    def query
      [].tap do |results|
        query_commads.each do |query_commad|
          start = Time.now
          Opentsdb.logger.debug "[OpenTSDB] query: #{query_commad.to_json}"
Severity: Minor
Found in lib/opentsdb/client.rb by rubocop

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.

Assignment Branch Condition size for parse_queries is too high. [15.52/15]
Open

    def parse_queries
      [].tap do |qs|
        query_options[:q].split(';').each do |q|
          query = QueryParser.parse(q)
          query.interval   = query_options[:interval]
Severity: Minor
Found in lib/opentsdb/client.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

There are no issues that match your filters.

Category
Status