Showing 1,009 of 1,009 total issues
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. Open
Open
require 'paperclip/railtie' if defined?(Rails::Railtie)
- 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"
Line is too long. [95/80] Open
Open
# * +s3_credentials+: Takes a path, a File, a Hash or a Proc. The path (or File) must point
- Exclude checks
Line is too long. [88/80] Open
Open
# * +s3_host_alias+: The fully-qualified domain name (FQDN) that is the alias to the
- Exclude checks
Line is too long. [81/80] Open
Open
# You can also specify a CNAME (which requires the CNAME to be specified as
- 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. [86/80] Open
Open
# * +keep_old_files+: Keep the existing attachment files (original + resized) from
- Exclude checks
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. Open
Open
require 'paperclip/io_adapters/identity_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
http_headers.inject({}) do |headers,(name,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, }
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
# the domain-style (:s3_domain_url). Anything else here will be treated like path-style.
- Exclude checks
Line is too long. [92/80] Open
Open
# image_path helper; this is what image_tag uses to generate the url for an img tag.
- Exclude checks
Line is too long. [93/80] Open
Open
# is typically a file stored somewhere on the filesystem and has been uploaded by a user.
- Exclude checks
Line is too long. [92/80] Open
Open
# as easily point to a directory served directly through Apache as it can to an action
- 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. [90/80] Open
Open
# * +styles+: A hash of thumbnail styles and their geometries. You can find more about
- Exclude checks
Line is too long. [89/80] Open
Open
# "-depth 8" to specify the bit depth of the resulting conversion. See ImageMagick
- Exclude checks
Line is too long. [92/80] Open
Open
# Note that this option takes a hash of options, each of which correspond to the style
- Exclude checks
Line is too long. [90/80] Open
Open
# NOTE: While not deprecated yet, it is not recommended to specify options this way.
- Exclude checks
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. Open
Open
require 'paperclip/media_type_spoof_detector'
- 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"