bio-miga/miga

View on GitHub
lib/miga/dataset.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
89%

Method has too many lines. [15/10]
Open

  def initialize(project, name, is_ref = true, metadata = {})
    name = name.to_s
    name.miga_name? or
      raise 'Invalid name, please use only alphanumerics and underscores: ' +
            name
Severity: Minor
Found in lib/miga/dataset.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.

Assignment Branch Condition size for initialize is too high. [15.13/15]
Open

  def initialize(project, name, is_ref = true, metadata = {})
    name = name.to_s
    name.miga_name? or
      raise 'Invalid name, please use only alphanumerics and underscores: ' +
            name
Severity: Minor
Found in lib/miga/dataset.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

Do not use parallel assignment.
Open

    @project, @name, @metadata = project, name, nil
Severity: Minor
Found in lib/miga/dataset.rb by rubocop

Checks for simple usages of parallel assignment. This will only complain when the number of variables being assigned matched the number of assigning variables.

Example:

# bad
a, b, c = 1, 2, 3
a, b, c = [1, 2, 3]

# good
one, two = *foo
a, b = foo()
a, b = b, a

a = 1
b = 2
c = 3

Trailing whitespace detected.
Open

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

Use snake_case for method names.
Open

    def INFO_FIELDS
Severity: Minor
Found in lib/miga/dataset.rb by rubocop

This cop makes sure that all methods use the configured style, snake_case or camelCase, for their names.

Example: EnforcedStyle: snake_case (default)

# bad
def fooBar; end

# good
def foo_bar; end

Example: EnforcedStyle: camelCase

# bad
def foo_bar; end

# good
def fooBar; end

There are no issues that match your filters.

Category
Status