bio-miga/miga

View on GitHub

Showing 1,314 of 1,315 total issues

Module has too many lines. [304/100]
Open

module MiGA::Dataset::Result
  include MiGA::Dataset::Base
  include MiGA::Common::WithResult

  ##
Severity: Minor
Found in lib/miga/dataset/result.rb by rubocop

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. [285/100]
Open

class DaemonTest < Test::Unit::TestCase
  include TestHelper
  include DaemonHelper

  def setup
Severity: Minor
Found in test/daemon_test.rb by rubocop

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. [242/100]
Open

class MiGA::Cli::Action::NcbiGet < MiGA::Cli::Action
  def parse_cli
    cli.defaults = {
      query: false, unlink: false,
      reference: false, legacy_name: false,
Severity: Minor
Found in lib/miga/cli/action/ncbi_get.rb by rubocop

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. [240/100]
Open

class MiGA::Cli::Action::Init < MiGA::Cli::Action
  require 'miga/cli/action/init/daemon_helper'
  include MiGA::Cli::Action::Init::DaemonHelper

  def parse_cli
Severity: Minor
Found in lib/miga/cli/action/init.rb by rubocop

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. [224/100]
Open

class MiGA::Daemon < MiGA::MiGA
  include MiGA::Daemon::Base
  include MiGA::Common::WithDaemon
  extend MiGA::Common::WithDaemonClass

Severity: Minor
Found in lib/miga/daemon.rb by rubocop

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. [186/100]
Open

module MiGA::Cli::Action::Wf
  def default_opts_for_wf
    cli.expect_files = true
    cli.defaults = {
      clean: false, regexp: MiGA::Cli.FILE_REGEXP,
Severity: Minor
Found in lib/miga/cli/action/wf.rb by rubocop

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. [185/100]
Open

class MiGA::Cli::Action::Browse < MiGA::Cli::Action
  def parse_cli
    cli.parse do |opt|
      cli.defaults = { open: true }
      cli.opt_object(opt, [:project])
Severity: Minor
Found in lib/miga/cli/action/browse.rb by rubocop

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. [184/100]
Open

class MiGA::Cli::Action::Doctor < MiGA::Cli::Action
  include MiGA::Cli::Action::Doctor::Base

  def parse_cli
    cli.defaults = Hash[@@OPERATIONS.keys.map { |i| [i, true] }]
Severity: Minor
Found in lib/miga/cli/action/doctor.rb by rubocop

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. [181/100]
Open

module MiGA::Result::Stats
  ##
  # (Re-)calculate and save the statistics for the result
  def compute_stats
    method = :"compute_stats_#{key}"
Severity: Minor
Found in lib/miga/result/stats.rb by rubocop

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. [181/100]
Open

class MiGA::Cli::Action::GetDb < MiGA::Cli::Action
  def parse_cli
    cli.defaults = {
      database: :recommended,
      version: :latest,
Severity: Minor
Found in lib/miga/cli/action/get_db.rb by rubocop

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. [179/100]
Open

class DatasetTest < Test::Unit::TestCase
  include TestHelper

  def setup
    initialize_miga_home
Severity: Minor
Found in test/dataset_test.rb by rubocop

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. [178/100]
Open

module MiGA::Cli::Action::Init::DaemonHelper
  def configure_daemon
    cli.puts 'Default daemon configuration:'
    daemon_f = File.expand_path('.miga_daemon.json', ENV['HOME'])
    unless File.exist?(daemon_f) and cli.ask_user(

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. [173/100]
Open

class MiGA::RemoteDataset < MiGA::MiGA
  include MiGA::RemoteDataset::Download

  # Class-level

Severity: Minor
Found in lib/miga/remote_dataset.rb by rubocop

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. [152/100]
Open

class MiGA::Cli::Action::Add < MiGA::Cli::Action
  def parse_cli
    cli.expect_files = true
    cli.defaults = {
      ref: true, ignore_dups: false,
Severity: Minor
Found in lib/miga/cli/action/add.rb by rubocop

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

Assignment Branch Condition size for seqs_length is too high. [96.04/15]
Open

  def seqs_length(file, format, opts = {})
    opts[:gc] = true if opts[:skew]
    fh = file =~ /\.gz/ ? Zlib::GzipReader.open(file) : File.open(file, 'r')
    l = []
    gc = 0
Severity: Minor
Found in lib/miga/common/format.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

Class has too many lines. [138/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'
Severity: Minor
Found in lib/miga/cli.rb by rubocop

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. [137/100]
Open

class ProjectTest < Test::Unit::TestCase
  include TestHelper

  def setup
    initialize_miga_home
Severity: Minor
Found in test/project_test.rb by rubocop

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. [132/100]
Open

class MiGA::Cli::Action::Get < MiGA::Cli::Action
  def parse_cli
    cli.defaults = { query: false, universe: :ncbi, db: :nuccore,
                     get_md: false, only_md: false }
    cli.parse do |opt|
Severity: Minor
Found in lib/miga/cli/action/get.rb by rubocop

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. [79/10]
Open

  def opts_for_wf(opt, files_desc, params = {})
    {
      multi: false, cleanup: true, project_type: false, ncbi: true, qual: true
    }.each { |k, v| params[k] = v if params[k].nil? }
    opt.on(
Severity: Minor
Found in lib/miga/cli/action/wf.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.

Module has too many lines. [123/100]
Open

module MiGA::Cli::OptHelper
  ##
  # Send MiGA's banner to OptionParser +opt+
  def banner(opt)
    usage = "Usage: miga #{action.name}"
Severity: Minor
Found in lib/miga/cli/opt_helper.rb by rubocop

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

Severity
Category
Status
Source
Language