bogdanRada/washout_builder

View on GitHub
lib/washout_builder/type.rb

Summary

Maintainability
A
0 mins
Test Coverage

%w-literals should be delimited by [ and ].
Open

    BASIC_TYPES = %w(string integer double boolean date datetime float time int)
Severity: Minor
Found in lib/washout_builder/type.rb by rubocop

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Trailing whitespace detected.
Open

    
Severity: Minor
Found in lib/washout_builder/type.rb by rubocop

Freeze mutable objects assigned to constants.
Open

    BASIC_TYPES = %w(string integer double boolean date datetime float time int)
Severity: Minor
Found in lib/washout_builder/type.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