Showing 1,009 of 1,009 total issues
Line is too long. [85/80] Open
Open
# S3 (strictly speaking) does not support directories, you can still use a / to
- Exclude checks
Line is too long. [86/80] Open
Open
# upload request. Can be defined both globally and within a style-specific hash.
- Exclude checks
Line is too long. [94/80] Open
Open
# just an absolute path is sufficient. The leading slash *must* be included manually for
- Exclude checks
Line is too long. [88/80] Open
Open
# Paperclip::Attachment#interpolate for more information on variable interpolaton.
- Exclude checks
Line is too long. [88/80] Open
Open
# * +default_url+: The URL that will be returned if there is no attachment assigned.
- Exclude checks
Line is too long. [89/80] Open
Open
# the original around is to regenerate all the thumbnails when requirements change.
- Exclude checks
Line is too long. [95/80] Open
Open
# has_attached_file :avatar, :styles => { :large => "300x300", :negative => "100x100" }
- Exclude checks
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. Open
Open
require 'paperclip/attachment'
- Read upRead up
- Exclude checks
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
Open
require 'paperclip/io_adapters/empty_string_adapter'
- Read upRead up
- Exclude checks
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
Open
require 'paperclip/io_adapters/file_adapter'
- Read upRead up
- Exclude checks
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"
Space missing after comma. Open
Open
s3_headers[name.to_s.downcase.sub(/\Ax-amz-/,'').tr("-","_").to_sym] = value
- Read upRead up
- Exclude checks
Checks for comma (,) not followed by some kind of space.
Example:
# bad
[1,2]
{ foo:bar,}
# good
[1, 2]
{ foo:bar, }
Line is too long. [94/80] Open
Open
# placed domain-style (bucket.s3.amazonaws.com) or path-style (s3.amazonaws.com/bucket).
- Exclude checks
Line is too long. [91/80] Open
Open
# that can control permissions. You can specify the full domain and path, but usually
- Exclude checks
Line is too long. [88/80] Open
Open
# called on it, the attachment will *not* be deleted until +save+ is called. See the
- Exclude checks
Line is too long. [89/80] Open
Open
# until +save+ is called on the record. Likewise, if the attribute is set to +nil+ is
- Exclude checks
Line is too long. [89/80] Open
Open
# * +url+: The full URL of where the attachment is publicly accessible. This can just
- Exclude checks
Line is too long. [88/80] Open
Open
# has_attached_file :avatar, :default_url => "/images/default_:style_avatar.png"
- Exclude checks
Line is too long. [86/80] Open
Open
# (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip
- Exclude checks
Line is too long. [86/80] Open
Open
# * +keep_old_files+: Keep the existing attachment files (original + resized) from
- Exclude checks
Line is too long. [89/80] Open
Open
# NOTE: Strings supplied to :convert_options are split on space in order to undergo
- Exclude checks