ByteDecoder/onuro

View on GitHub
lib/onuro/execution_result.rb

Summary

Maintainability
A
0 mins
Test Coverage

Freeze mutable objects assigned to constants.
Open

    NO_PROCESSABLE = 'NO_PROCESSABLE'
Severity: Minor
Found in lib/onuro/execution_result.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

    SUCCESSFUL = 'SUCCESSFUL'
Severity: Minor
Found in lib/onuro/execution_result.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

    FAILURE = 'FAILURE'
Severity: Minor
Found in lib/onuro/execution_result.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