lib/fabricio/networking/app_request_model_factory.rb
Class has too many lines. [392/250] Confirmed
Confirmed
class AppRequestModelFactory < RequestModelFactory
# Returns a request model for obtaining the list of all apps
#
# @return [Fabricio::Networking::RequestModel]
- Read upRead up
- Exclude checks
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
Confirmed
require 'fabricio/networking/request_model_factory'
require 'fabricio/networking/request_model'
require 'json'
module Fabricio
Class AppRequestModelFactory
has 24 methods (exceeds 20 allowed). Consider refactoring. Wontfix
Wontfix
class AppRequestModelFactory < RequestModelFactory
# Returns a request model for obtaining the list of all apps
#
# @return [Fabricio::Networking::RequestModel]
Method has too many lines. [33/30] Confirmed
Confirmed
def top_issues_request_model(options = {})
options = {
:app_id => stored_app_id,
:start_time => week_ago_timestamp,
:end_time => today_timestamp,
- 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 top_issues_request_model
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
def top_issues_request_model(options = {})
options = {
:app_id => stored_app_id,
:start_time => week_ago_timestamp,
:end_time => today_timestamp,
Method custom_event_attribute_request_model
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
def custom_event_attribute_request_model(options = {})
options = {
:organization_id => stored_organization_id,
:app_id => stored_app_id,
:start_time => week_ago_timestamp,
Method crash_count_request_model
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
def crash_count_request_model(options = {})
options = {
:app_id => stored_app_id,
:start_time => week_ago_timestamp,
:end_time => today_timestamp,
Method single_issue_request_model
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
def single_issue_request_model(options = {})
options = {
:app_id => stored_app_id,
:issue_id => nil,
:start_time => week_ago_timestamp,