voxable-labs/hg

View on GitHub
lib/hg/internal_actions.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

  # TODO: Throw a warning in the router if any of these are overwritten.
Severity: Minor
Found in lib/hg/internal_actions.rb by fixme

Freeze mutable objects assigned to constants.
Open

    DISPLAY_CHUNK = 'display_chunk'
Severity: Minor
Found in lib/hg/internal_actions.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

    DEFAULT = 'default'
Severity: Minor
Found in lib/hg/internal_actions.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

    HANDLE_COORDINATES = 'handle_coordinates'
Severity: Minor
Found in lib/hg/internal_actions.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

There are no issues that match your filters.

Category
Status