Showing 1,009 of 1,009 total issues
Space inside parentheses detected. Open
Open
merge_s3_headers( style_specific_options[:s3_headers], @s3_headers, @s3_metadata) if style_specific_options[:s3_headers]
- Read upRead up
- Exclude checks
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
Open
# to a YAML file containing the +access_key_id+ and +secret_access_key+ that Amazon
- Exclude checks
Line is too long. [81/80] Open
Open
# * +s3_headers+: A hash of headers or a Proc. You may specify a hash such as
- Exclude checks
Line is too long. [90/80] Open
Open
# array to pass in various convert command options. Typical options are "-strip" to
- Exclude checks
Line is too long. [86/80] Open
Open
# remove all Exif data from the image (save space for thumbnails and avatars) or
- Exclude checks
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. Open
Open
require 'paperclip/tempfile'
- 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/glue'
- 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/attachment_registry'
- 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/stringio_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"
Unnecessary spacing detected. Open
Open
@s3_options = @options[:s3_options] || {}
- Read upRead up
- Exclude checks
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
Open
# When using a Proc it provides a single parameter which is the attachment itself. A
- Exclude checks
Line is too long. [88/80] Open
Open
# method #instance is available on the attachment which will take you back to your
- Exclude checks
Line is too long. [89/80] Open
Open
# :s3_credentials => Proc.new{|a| a.instance.s3_credentials }
- Exclude checks
Line is too long. [93/80] Open
Open
# {'Expires' => 1.year.from_now.httpdate}. If you use a Proc, headers are determined at
- Exclude checks
Line is too long. [86/80] Open
Open
# Paperclip will attempt to create it. The bucket name will not be interpolated.
- Exclude checks
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. [85/80] Open
Open
# S3 (strictly speaking) does not support directories, you can still use a / to
- Exclude checks
Line is too long. [90/80] Open
Open
# that file. The intent is to make the attachment as much like a normal attribute. The
- Exclude checks
Line is too long. [91/80] Open
Open
# Paperclip::Attachment documentation for more specifics. There are a number of options
- 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