app/decorators/c2_version_decorator.rb
Method has too many lines. [13/10] Open
Open
def update_html
content_tag :ul do
changes = object.diff.map do |change|
field = change[1]
next if %w(created_at updated_at).include?(field)
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
%w
-literals should be delimited by [
and ]
. Open
Open
next if %w(created_at updated_at).include?(field)
- Read upRead up
- Exclude checks
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)