bio-miga/miga-gui

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

Summary

Maintainability
A
0 mins
Test Coverage

Extra empty line detected at module body end.
Open


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

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

Example: EnforcedStyle: empty_lines

# good

module Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

module Foo
  module Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
module Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

module Foo
  def bar
    # ...
  end
end

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

require "date"
Severity: Minor
Found in lib/miga/gui/version.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"

1 trailing blank lines detected.
Open

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

Freeze mutable objects assigned to constants.
Open

  VERSION = "0.2.0.9"
Severity: Minor
Found in lib/miga/gui/version.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze

Use 0o for octal literals.
Open

  VERSION_DATE = Date.new(2016, 04, 20)
Severity: Minor
Found in lib/miga/gui/version.rb by rubocop

This cop checks for octal, hex, binary and decimal literals using uppercase prefixes and corrects them to lowercase prefix or no prefix (in case of decimals). eg. for octal use 0o instead of 0 or 0O.

Can be configured to use 0 only for octal literals using EnforcedOctalStyle => zero_only

Use CamelCase for classes and modules.
Open

module MiGA_GUI
Severity: Minor
Found in lib/miga/gui/version.rb by rubocop

This cops checks for class and module names with an underscore in them.

Example:

# bad
class My_Class
end
module My_Module
end

# good
class MyClass
end
module MyModule
end

Trailing whitespace detected.
Open

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

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

  VERSION = "0.2.0.9"
Severity: Minor
Found in lib/miga/gui/version.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"

There are no issues that match your filters.

Category
Status