Showing 1,586 of 1,600 total issues
Module has too many lines. [134/100] Open
module MiGA::Cli::Action::Doctor::Operations
##
# Perform refdb operation with MiGA::Cli +cli+
def check_refdb(cli)
cli.say 'Checking index format of reference database'
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Module has too many lines. [132/100] Open
module MiGA::Cli::OptHelper
##
# Send MiGA's banner to OptionParser +opt+
def banner(opt)
usage = "Usage: miga #{action.name}"
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Class has too many lines. [129/100] Open
class MiGA::Result < MiGA::MiGA
include MiGA::Result::Dates
include MiGA::Result::Source
include MiGA::Result::Stats
include MiGA::Result::Versions
- Read upRead up
- Create a ticketCreate a ticket
- 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.
Class has too many lines. [129/100] Open
class MiGA::RemoteDataset
include MiGA::RemoteDataset::Base
# Class-level
class << self
- Read upRead up
- Create a ticketCreate a ticket
- 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.
Module has too many lines. [127/100] Open
module MiGA::Cli::Action::Download::Ncbi
include MiGA::Cli::Action::Download::Base
def cli_task_flags(opt)
cli.opt_flag(
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Class has too many lines. [124/100] Open
class MiGA::Cli < MiGA::MiGA
require 'miga/cli/base'
require 'miga/cli/opt_helper'
require 'miga/cli/objects_helper'
require 'miga/cli/action'
- Read upRead up
- Create a ticketCreate a ticket
- 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.
Module has too many lines. [124/100] Open
module MiGA::Project::Base
##
# Top-level folders inside a project
@@FOLDERS = %w[data metadata daemon]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Module has too many lines. [123/100] Open
module MiGA::Project::Dataset
##
# Returns Array of MiGA::Dataset
def datasets
metadata[:datasets].map { |name| dataset(name) }
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Module has too many lines. [122/100] Open
module MiGA::Common::WithDaemon
# Process ID of the forked process declaring the daemon alive
attr :declare_alive_pid
# Loop counter
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Class has too many lines. [117/100] Open
class ResultTest < Test::Unit::TestCase
include TestHelper
def setup
initialize_miga_home
- Read upRead up
- Create a ticketCreate a ticket
- 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.
Class has too many lines. [116/100] Open
class ResultStatsTest < Test::Unit::TestCase
include TestHelper
def setup
initialize_miga_home
- Read upRead up
- Create a ticketCreate a ticket
- 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.
Method has too many lines. [74/10] Open
def configure_qsub_msub_daemon(v)
flavor = v[:type] == 'msub' ? 'msub' :
cli.ask_user('Select qsub flavor', 'torque', %w[torque sge])
queue = cli.ask_user('What queue should I use?', nil, nil, true)
v[:latency] = cli.ask_user('How long should I sleep? (in secs)', '150').to_i
- Read upRead up
- Create a ticketCreate a ticket
- 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.
Class has too many lines. [111/100] Open
class MiGA::Taxonomy < MiGA::MiGA
include MiGA::Taxonomy::Base
##
# Taxonomic hierarchy Hash.
- Read upRead up
- Create a ticketCreate a ticket
- 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.
Module has too many lines. [111/100] Open
module MiGA::Cli::Action::Doctor::Distances
##
# Perform databases operation with MiGA::Cli +cli+
def check_db(cli)
cli.say 'Checking integrity of databases'
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Method has too many lines. [72/10] Open
def parse_cli
cli.defaults = { daemon_opts: [] }
cli.expect_operation = true
cli.parse do |opt|
opt.separator 'Available operations:'
- Read upRead up
- Create a ticketCreate a ticket
- 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 has too many lines. [72/10] Open
def parse_cli
cli.defaults = {
query: false, universe: :ncbi, db: :nuccore, get_md: false, only_md: false
}
cli.parse do |opt|
- Read upRead up
- Create a ticketCreate a ticket
- 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.
Module has too many lines. [109/100] Open
module MiGA::Project::Result
include MiGA::Project::Base
include MiGA::Common::WithResult
##
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Assignment Branch Condition size for test_preprocessing is too high. [76.16/15] Open
def test_preprocessing
d2 = project.add_dataset('ds_preprocessing')
assert_nil(d2.first_preprocessing)
assert_nil(d2.next_preprocessing)
assert_not_predicate(d2, :done_preprocessing?)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Module has too many lines. [107/100] Open
module MiGA::Cli::Action::Init::FilesHelper
def open_rc_file
rc_path = File.expand_path('.miga_rc', ENV['MIGA_HOME'])
if File.exist? rc_path
if cli.ask_user(
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Class has too many lines. [105/100] Open
class MiGA::Metadata < MiGA::MiGA
# Class-level
##
# Does the metadata described in +path+ already exist?
- Read upRead up
- Create a ticketCreate a ticket
- 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.