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.
Assignment Branch Condition size for check_configuration_script is too high. [26.25/15] Open
def check_configuration_script(rc_fh)
unless File.exist? cli[:config]
cli[:config] = cli.ask_user(
'Is there a script I need to load at startup?',
cli[:config]
- 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
Method has too many lines. [20/10] Open
def check_rdp_classifier
cli.print 'Looking for RDP classifier... '
miga_db = File.join(ENV['MIGA_HOME'], '.miga_db')
file = 'classifier.jar'
path = File.join(miga_db, file)
- 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. [19/10] Open
def check_mytaxa_database(paths)
cli.print 'Looking for MyTaxa DB... '
mt = File.dirname(paths['MyTaxa'])
dmnd_db = 'AllGenomes.faa.dmnd'
miga_db = File.join(ENV['MIGA_HOME'], '.miga_db')
- 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.
Assignment Branch Condition size for check_mytaxa_database is too high. [23.62/15] Open
def check_mytaxa_database(paths)
cli.print 'Looking for MyTaxa DB... '
mt = File.dirname(paths['MyTaxa'])
dmnd_db = 'AllGenomes.faa.dmnd'
miga_db = File.join(ENV['MIGA_HOME'], '.miga_db')
- 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
Assignment Branch Condition size for check_rdp_classifier is too high. [21.61/15] Open
def check_rdp_classifier
cli.print 'Looking for RDP classifier... '
miga_db = File.join(ENV['MIGA_HOME'], '.miga_db')
file = 'classifier.jar'
path = File.join(miga_db, file)
- 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
Method has too many lines. [15/10] Open
def check_configuration_script(rc_fh)
unless File.exist? cli[:config]
cli[:config] = cli.ask_user(
'Is there a script I need to load at startup?',
cli[:config]
- 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. [14/10] Open
def open_rc_file
rc_path = File.expand_path('.miga_rc', ENV['MIGA_HOME'])
if File.exist? rc_path
if cli.ask_user(
'I found a previous configuration. Do you want to continue?',
- 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.
%w
-literals should be delimited by [
and ]
. Open
'yes', %w(yes no)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop enforces the consistent usage of %
-literal delimiters.
Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.
Example:
# Style/PercentLiteralDelimiters:
# PreferredDelimiters:
# default: '[]'
# '%i': '()'
# good
%w[alpha beta] + %i(gamma delta)
# bad
%W(alpha #{beta})
# bad
%I(alpha beta)