thoughtbot/paperclip

View on GitHub
lib/paperclip/callbacks.rb

Summary

Maintainability
A
0 mins
Test Coverage

Pass __FILE__ and __LINE__ to eval method, as they are used by backtraces.
Open

          eval <<-end_callbacks
Severity: Minor
Found in lib/paperclip/callbacks.rb by rubocop

This cop checks eval method usage. eval can receive source location metadata, that are filename and line number. The metadata is used by backtraces. This cop recommends to pass the metadata to eval method.

Example:

# bad
eval <

Use uppercase heredoc delimiters.
Open

          end_callbacks
Severity: Minor
Found in lib/paperclip/callbacks.rb by rubocop

This cop checks that your heredocs are using the configured case. By default it is configured to enforce uppercase heredocs.

Example: EnforcedStyle: uppercase (default)

# bad
<

Example: EnforcedStyle: lowercase

# bad
<

Line is too long. [83/80]
Open

        define_callbacks(*[callbacks, { terminator: hasta_la_vista_baby }].flatten)
Severity: Minor
Found in lib/paperclip/callbacks.rb by rubocop

The use of eval is a serious security risk.
Open

          eval <<-end_callbacks
Severity: Minor
Found in lib/paperclip/callbacks.rb by rubocop

This cop checks for the use of Kernel#eval and Binding#eval.

Example:

# bad

eval(something)
binding.eval(something)

There are no issues that match your filters.

Category
Status