thoughtbot/paperclip

View on GitHub
lib/paperclip/io_adapters/attachment_adapter.rb

Summary

Maintainability
A
0 mins
Test Coverage

end at 10, 6 is not aligned with case at 5, 24.
Open

      end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Indent when as deep as case.
Open

      when Paperclip::Attachment

This cop checks how the whens of a case expression are indented in relation to its case or end keyword.

It will register a separate offense for each misaligned when.

Indent when as deep as case.
Open

      when Paperclip::Style

This cop checks how the whens of a case expression are indented in relation to its case or end keyword.

It will register a separate offense for each misaligned when.

There are no issues that match your filters.

Category
Status