NullVoxPopuli/spiced_rumby

View on GitHub

Showing 64 of 64 total issues

Freeze mutable objects assigned to constants.
Open

      BACKGROUND = '#222222'
Severity: Minor
Found in lib/spiced_rumby/gui/colorer.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

Freeze mutable objects assigned to constants.
Open

      WARNING = '#ffff00'
Severity: Minor
Found in lib/spiced_rumby/gui/colorer.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

Freeze mutable objects assigned to constants.
Open

      OFFLINE_CONTACT = '#444444'
Severity: Minor
Found in lib/spiced_rumby/gui/colorer.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

Do not prefix reader method names with get_. (https://github.com/bbatsov/ruby-style-guide#accessor_mutator_method_names)
Open

      def get_input
Severity: Minor
Found in lib/spiced_rumby/debug/cli_input.rb by rubocop

This cop makes sure that accessor methods are named properly.

Example:

# bad
def set_attribute(value)
end

# good
def attribute=(value)
end

# bad
def get_attribute
end

# good
def attribute
end
Severity
Category
Status
Source
Language