strongself/fabricio

View on GitHub
lib/fabricio/networking/app_request_model_factory.rb

Summary

Maintainability
C
1 day
Test Coverage

Class has too many lines. [392/250]
Confirmed

    class AppRequestModelFactory < RequestModelFactory

      # Returns a request model for obtaining the list of all apps
      #
      # @return [Fabricio::Networking::RequestModel]

This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

File app_request_model_factory.rb has 400 lines of code (exceeds 250 allowed). Consider refactoring.
Confirmed

require 'fabricio/networking/request_model_factory'
require 'fabricio/networking/request_model'
require 'json'

module Fabricio
Severity: Minor
Found in lib/fabricio/networking/app_request_model_factory.rb - About 5 hrs to fix

    Class AppRequestModelFactory has 24 methods (exceeds 20 allowed). Consider refactoring.
    Wontfix

        class AppRequestModelFactory < RequestModelFactory
    
          # Returns a request model for obtaining the list of all apps
          #
          # @return [Fabricio::Networking::RequestModel]
    Severity: Minor
    Found in lib/fabricio/networking/app_request_model_factory.rb - About 2 hrs to fix

      Method has too many lines. [33/30]
      Confirmed

            def top_issues_request_model(options = {})
              options = {
                :app_id => stored_app_id,
                :start_time => week_ago_timestamp,
                :end_time => today_timestamp,

      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 top_issues_request_model has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Confirmed

            def top_issues_request_model(options = {})
              options = {
                :app_id => stored_app_id,
                :start_time => week_ago_timestamp,
                :end_time => today_timestamp,
      Severity: Minor
      Found in lib/fabricio/networking/app_request_model_factory.rb - About 1 hr to fix

        Method custom_event_attribute_request_model has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Wontfix

              def custom_event_attribute_request_model(options = {})
                options = {
                  :organization_id => stored_organization_id,
                  :app_id => stored_app_id,
                  :start_time => week_ago_timestamp,
        Severity: Minor
        Found in lib/fabricio/networking/app_request_model_factory.rb - About 1 hr to fix

          Method crash_count_request_model has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Confirmed

                def crash_count_request_model(options = {})
                  options = {
                    :app_id => stored_app_id,
                    :start_time => week_ago_timestamp,
                    :end_time => today_timestamp,
          Severity: Minor
          Found in lib/fabricio/networking/app_request_model_factory.rb - About 1 hr to fix

            Method single_issue_request_model has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Confirmed

                  def single_issue_request_model(options = {})
                    options = {
                        :app_id => stored_app_id,
                        :issue_id => nil,
                        :start_time => week_ago_timestamp,
            Severity: Minor
            Found in lib/fabricio/networking/app_request_model_factory.rb - About 1 hr to fix

              There are no issues that match your filters.

              Category
              Status