thoughtbot/paperclip

View on GitHub

Showing 1,009 of 1,009 total issues

Space inside parentheses detected.
Open

              merge_s3_headers( style_specific_options[:s3_headers], @s3_headers, @s3_metadata) if style_specific_options[:s3_headers]
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Checks for spaces inside ordinary round parentheses.

Example:

# bad
f( 3)
g = (a + 3 )

# good
f(3)
g = (a + 3)

Line is too long. [89/80]
Open

    #   to a YAML file containing the +access_key_id+ and +secret_access_key+ that Amazon
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [81/80]
Open

    # * +s3_headers+: A hash of headers or a Proc. You may specify a hash such as
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [90/80]
Open

    #   array to pass in various convert command options.  Typical options are "-strip" to
Severity: Minor
Found in lib/paperclip.rb by rubocop

Line is too long. [86/80]
Open

    #   remove all Exif data from the image (save space for thumbnails and avatars) or
Severity: Minor
Found in lib/paperclip.rb by rubocop

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

require 'paperclip/tempfile'
Severity: Minor
Found in lib/paperclip.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

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

require 'paperclip/glue'
Severity: Minor
Found in lib/paperclip.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

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

require 'paperclip/attachment_registry'
Severity: Minor
Found in lib/paperclip.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

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

require 'paperclip/io_adapters/stringio_adapter'
Severity: Minor
Found in lib/paperclip.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Unnecessary spacing detected.
Open

          @s3_options     = @options[:s3_options]     || {}
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

This cop checks for extra/unnecessary whitespace.

Example:

# good if AllowForAlignment is true
name      = "RuboCop"
# Some comment and an empty line

website  += "/bbatsov/rubocop" unless cond
puts        "rubocop"          if     debug

# bad for any configuration
set_app("RuboCop")
website  = "https://github.com/bbatsov/rubocop"

Line is too long. [90/80]
Open

    #   When using a Proc it provides a single parameter which is the attachment itself. A
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [88/80]
Open

    #   method #instance is available on the attachment which will take you back to your
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [89/80]
Open

    #                         :s3_credentials => Proc.new{|a| a.instance.s3_credentials }
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [93/80]
Open

    #   {'Expires' => 1.year.from_now.httpdate}. If you use a Proc, headers are determined at
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [86/80]
Open

    #   Paperclip will attempt to create it. The bucket name will not be interpolated.
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [94/80]
Open

    #   placed domain-style (bucket.s3.amazonaws.com) or path-style (s3.amazonaws.com/bucket).
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [85/80]
Open

    #   S3 (strictly speaking) does not support directories, you can still use a / to
Severity: Minor
Found in lib/paperclip/storage/s3.rb by rubocop

Line is too long. [90/80]
Open

    # that file. The intent is to make the attachment as much like a normal attribute. The
Severity: Minor
Found in lib/paperclip.rb by rubocop

Line is too long. [91/80]
Open

    # Paperclip::Attachment documentation for more specifics. There are a number of options
Severity: Minor
Found in lib/paperclip.rb by rubocop

Line is too long. [89/80]
Open

    #   NOTE: Strings supplied to :convert_options are split on space in order to undergo
Severity: Minor
Found in lib/paperclip.rb by rubocop
Severity
Category
Status
Source
Language