Showing 76 of 102 total issues
Class Device
has 49 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Device < AbstractDevice
attr_accessor :usb_ssh_port, :mode, :tool_port, :ios_version
attr_reader :data_dir
def initialize(username, password, hostname, port)
Method initialize
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize *args
super *args
@icons = Qt::FileIconProvider.new
Method initialize
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize *args
super *args
@layout = Qt::GridLayout.new
setLayout(@layout)
Method menu
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def menu
##########################################
# MENU
##########################################
Class App
has 29 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class App
attr_accessor :uuid, :app_dir, :binary, :cache_dir, :services_map
attr_reader :data_dir
def initialize(uuid)
File device.rb
has 302 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require_relative 'abstract_device'
require_relative 'ssh_port_forwarder'
require_relative 'device_ca_interface'
require_relative 'usb_muxd_wrapper'
require 'json'
Method initialize
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(username, password, hostname, port)
@username = username
@password = password
@hostname = hostname
@port = port
Method initialize
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize *args
super *args
@fuzz_config_layout = Qt::GridLayout.new
setLayout @fuzz_config_layout
Method initialize
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(*args)
super(*args)
@layout = Qt::GridLayout.new
setLayout(@layout)
setWindowTitle("CA Certificate Management")
File fs_viewer_tab_widget.rb
has 272 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require_relative '../lib/rsync_git_manager'
module Idb
class FSViewerControlGroupBox < Qt::GroupBox
def initialize *args
Method initialize
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize *args
super *args
@pbs_to_watch = Hash.new
@pbs_to_watch["general"] = ""
Method menu
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
def menu
##########################################
# MENU
##########################################
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File app.rb
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require_relative 'plist_util'
require_relative 'app_binary'
require_relative 'CgBI'
require_relative 'ios8_last_launch_services_map_wrapper'
require_relative 'ios10_application_state_db_wrapper'
Method initialize
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
Open
def initialize *args
super *args
@layout = Qt::GridLayout.new
setLayout(@layout)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method setup_local_port_forward
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setup_local_port_forward
@local_forward_tab = Qt::Widget.new self
forward_config_layout = Qt::GridLayout.new
@local_forward_tab.setLayout forward_config_layout
addTab(@local_forward_tab,"Local")
Method setup_remote_port_forward
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setup_remote_port_forward
@remote_forward_tab = Qt::Widget.new self
forward_config_layout = Qt::GridLayout.new
@remote_forward_tab.setLayout forward_config_layout
addTab(@remote_forward_tab,"Remote")
Method initialize
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize *args
super *args
layout = Qt::VBoxLayout.new
setLayout(layout)
Method initialize
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize *args
super *args
@model = Qt::StandardItemModel.new
Method parse_event
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def parse_event e
row = Array.new
row << Qt::StandardItem.new(e.value["id"].value.to_s)
row << Qt::StandardItem.new(Time.at(e.value["timestamp"].value).to_s)
Method initialize
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize *args
@layout = Qt::GridLayout.new
super *args
setLayout @layout