Showing 1,441 of 1,441 total issues
Place the . on the next line, together with the method name. Open
with(:headers => {'Accept' => '*/*', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host' => 'localhost:3001', 'User-Agent' => 'Ruby'}).
- Read upRead up
- Exclude checks
This cop checks the . position in multi-line method calls.
Example: EnforcedStyle: leading (default)
# bad
something.
mehod
# good
something
.method
Example: EnforcedStyle: trailing
# bad
something
.method
# good
something.
mehod
Line is too long. [99/80] Open
error_message = I18n.t('activerecord.errors.models.project.attributes.interfaces.not_unique')
- Exclude checks
Extra empty line detected at class body beginning. Open
def initialize(_model)
- Read upRead up
- Exclude checks
This cops checks if empty lines around the bodies of classes match the configuration.
Example: EnforcedStyle: empty_lines
# good
class Foo
def bar
# ...
end
end
Example: EnforcedStyle: emptylinesexcept_namespace
# good
class Foo
class Bar
# ...
end
end
Example: EnforcedStyle: emptylinesspecial
# good
class Foo
def bar; end
end
Example: EnforcedStyle: noemptylines (default)
# good
class Foo
def bar
# ...
end
end
Line is too long. [86/80] Open
abort("The Rails environment is running in production mode!") if Rails.env.production?
- Exclude checks
Missing space after #
. Open
#end
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#config.server_host = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [118/80] Open
# This suites spec helper, which can require additional support files. This file is loaded before any of your test
- Exclude checks
Line is too long. [85/80] Open
@raw_datum = FactoryGirl.create(:raw_datum, project: project_with_defined_id)
- Exclude checks
Line is too long. [98/80] Open
# Specify a port to run on a specific port, otherwise Teaspoon will use a random available port.
- Exclude checks
Line is too long. [115/80] Open
# Force Teaspoon to fail immediately after a failing suite. Can be useful to make Teaspoon fail early if you have
- Exclude checks
Line is too long. [116/80] Open
# Teaspoon pipes all console[log/debug/error] to $stdout. This is useful to catch places where you've forgotten to
- Exclude checks
Line is too long. [98/80] Open
# The path that the coverage should be written to - when there's an artifact to write to disk.
- Exclude checks
Line is too long. [118/80] Open
# Assets to be ignored when generating coverage reports. Accepts an array of filenames or regular expressions. The
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
config.mount_at = "/teaspoon"
- 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"
Extra empty line detected at class body beginning. Open
def initialize(_model)
- Read upRead up
- Exclude checks
This cops checks if empty lines around the bodies of classes match the configuration.
Example: EnforcedStyle: empty_lines
# good
class Foo
def bar
# ...
end
end
Example: EnforcedStyle: emptylinesexcept_namespace
# good
class Foo
class Bar
# ...
end
end
Example: EnforcedStyle: emptylinesspecial
# good
class Foo
def bar; end
end
Example: EnforcedStyle: noemptylines (default)
# good
class Foo
def bar
# ...
end
end
Put empty method definitions on a single line. Open
def initialize(_model)
end
- Read upRead up
- Exclude checks
This cop checks for the formatting of empty method definitions.
By default it enforces empty method definitions to go on a single
line (compact style), but it can be configured to enforce the end
to go on its own line (expanded style).
Note: A method definition is not considered empty if it contains comments.
Example: EnforcedStyle: compact (default)
# bad
def foo(bar)
end
def self.foo(bar)
end
# good
def foo(bar); end
def foo(bar)
# baz
end
def self.foo(bar); end
Example: EnforcedStyle: expanded
# bad
def foo(bar); end
def self.foo(bar); end
# good
def foo(bar)
end
def self.foo(bar)
end
Line is too long. [98/80] Open
container_class = Rails.configuration.x.dalphi['annotation-interface']['container-class-name']
- Exclude checks
Missing space after #
. Open
#config.driver_timeout = 180
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [83/80] Open
# considered a failure. This is to avoid issues that can arise where tests stall.
- Exclude checks
Place the . on the next line, together with the method name. Open
stub_request(:get, 'http://localhost:3000/').
- Read upRead up
- Exclude checks
This cop checks the . position in multi-line method calls.
Example: EnforcedStyle: leading (default)
# bad
something.
mehod
# good
something
.method
Example: EnforcedStyle: trailing
# bad
something
.method
# good
something.
mehod