thoughtbot/paperclip

View on GitHub

Showing 913 of 999 total issues

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

desc 'Start an IRB session with all necessary files required.'
Severity: Minor
Found in Rakefile by rubocop

Line is too long. [83/80]
Open

      min     = options[:greater_than] || (options[:in] && options[:in].first) || 0
Severity: Minor
Found in shoulda_macros/paperclip.rb by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

      klass   = self.name.gsub(/Test$/, '').constantize
Severity: Minor
Found in shoulda_macros/paperclip.rb by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

require 'appraisal'
Severity: Minor
Found in Rakefile by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

desc 'Default: run unit tests.'
Severity: Minor
Found in Rakefile by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

    exec('rake spec cucumber')
Severity: Minor
Found in Rakefile by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

    exec('rake appraisal')
Severity: Minor
Found in Rakefile by rubocop

Use def with parentheses when there are parameters.
Open

    def should_have_attached_file name
Severity: Minor
Found in shoulda_macros/paperclip.rb by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

  s.add_dependency('mimemagic', '~> 0.3.0')
Severity: Minor
Found in paperclip.gemspec by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

  s.add_development_dependency('rspec', '~> 3.0')
Severity: Minor
Found in paperclip.gemspec by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

  s.add_development_dependency('appraisal')
Severity: Minor
Found in paperclip.gemspec by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

  s.add_development_dependency('cucumber-rails')
Severity: Minor
Found in paperclip.gemspec by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

  s.add_development_dependency('rake')
Severity: Minor
Found in paperclip.gemspec by rubocop

Line is too long. [89/80]
Open

    #   the original around is to regenerate all the thumbnails when requirements change.
Severity: Minor
Found in lib/paperclip.rb by rubocop

Line is too long. [95/80]
Open

    #     has_attached_file :avatar, :styles => { :large => "300x300", :negative => "100x100" }
Severity: Minor
Found in lib/paperclip.rb by rubocop

Use def with parentheses when there are parameters.
Open

    def should_validate_attachment_content_type name, options = {}
Severity: Minor
Found in shoulda_macros/paperclip.rb by rubocop

Unused block argument - match. You can omit the argument if you don't care about it.
Open

      path.gsub!(/:([^\/\.]+)/) do |match|
Severity: Minor
Found in shoulda_macros/paperclip.rb by rubocop

This cop checks for unused block arguments.

Example:

#good

do_something do |used, unused|
  puts used
end

do_something do
  puts :foo
end

define_method(:foo) do |_bar|
  puts :baz
end

# bad

do_something do |used, _unused|
  puts used
end

do_something do |bar|
  puts :foo
end

define_method(:foo) do |bar|
  puts :baz
end

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

gem 'pry'
Severity: Minor
Found in Gemfile by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

  s.add_development_dependency('nokogiri')
Severity: Minor
Found in paperclip.gemspec by rubocop

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Open

  s.add_development_dependency('capybara')
Severity: Minor
Found in paperclip.gemspec by rubocop
Severity
Category
Status
Source