bio-miga/miga-gui

View on GitHub
lib/miga/gui/common.rb

Summary

Maintainability
A
0 mins
Test Coverage

Extra empty line detected at class body end.
Open


end
Severity: Minor
Found in lib/miga/gui/common.rb by rubocop

This cops checks if empty lines around the bodies of classes match the configuration.

Example: EnforcedStyle: empty_lines

# good

class Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

class Foo
  class Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
class Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

class Foo
  def bar
    # ...
  end
end

Use nested module/class definitions instead of compact style.
Open

class MiGA::GUI
Severity: Minor
Found in lib/miga/gui/common.rb by rubocop

This cop checks the style of children definitions at classes and modules. Basically there are two different styles:

Example: EnforcedStyle: nested (default)

# good
# have each child on its own line
class Foo
  class Bar
  end
end

Example: EnforcedStyle: compact

# good
# combine definitions as much as possible
class Foo::Bar
end

The compact style is only forced for classes/modules with one child.

Trailing whitespace detected.
Open

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

require "miga/common"
Severity: Minor
Found in lib/miga/gui/common.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Trailing whitespace detected.
Open

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

1 trailing blank lines detected.
Open

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

There are no issues that match your filters.

Category
Status