Showing 1,441 of 1,441 total issues
Missing space after #
. Open
#config.driver = :phantomjs
- 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_port = 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
Missing space after #
. Open
#coverage.functions = 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. [85/80] Open
error_message = I18n.t('activerecord.errors.models.service.attributes.url.isNil')
- Exclude checks
Do not use ::
for method calls. Open
elsif !UrlResponseChecker::check_response url
- Read upRead up
- Exclude checks
This cop checks for methods invoked via the :: operator instead of the . operator (like FileUtils::rmdir instead of FileUtils.rmdir).
Example:
# bad
Timeout::timeout(500) { do_something }
FileUtils::rmdir(dir)
Marshal::dump(obj)
# good
Timeout.timeout(500) { do_something }
FileUtils.rmdir(dir)
Marshal.dump(obj)
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
Missing top-level class documentation comment. Open
class InterfaceTitleUniquenessValidator < ActiveModel::Validator
- Read upRead up
- Exclude checks
This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.
The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.
Example:
# bad
class Person
# ...
end
# good
# Description/Explanation of Person class
class Person
# ...
end
Line is too long. [89/80] Open
record.errors['test_payload'] << I18n.t('activerecord.errors.models.interface_type' \
- Exclude checks
Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem rubocop
should appear before rubocop-rspec
. Open
gem 'rubocop', '< 0.49.0', require: false
- Read upRead up
- Exclude checks
Gems should be alphabetically sorted within groups.
Example:
# bad
gem 'rubocop'
gem 'rspec'
# good
gem 'rspec'
gem 'rubocop'
# good
gem 'rubocop'
gem 'rspec'
# good only if TreatCommentsAsGroupSeparators is true
# For code quality
gem 'rubocop'
# For tests
gem 'rspec'
Missing space after #
. Open
#config.server = 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
Missing space after #
. Open
#config.server_timeout = 20
- 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. [111/80] Open
# Teaspoon expands all assets to provide more valuable stack traces that reference individual source files.
- Exclude checks
Line is too long. [117/80] Open
# directives can be overridden using the command line interface arguments or with ENV variables when using the rake
- Exclude checks
Line is too long. [100/80] Open
# Specify a server to use with Rack (e.g. thin, mongrel). If nil is provided Rack::Server is used.
- Exclude checks
Line is too long. [84/80] Open
# Specify a host to run on a specific host, otherwise Teaspoon will use 127.0.0.1.
- Exclude checks
Line is too long. [97/80] Open
return record.errors['title'] << I18n.t('activerecord.errors.models.interface.attributes' \
- Exclude checks
Line is too long. [90/80] Open
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
- Exclude checks
Missing space after #
. Open
#config.formatters = [:dot]
- 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
# Partial to be rendered in the body tag of the runner. You can define your own to create a custom body structure.
- Exclude checks
Line is too long. [118/80] Open
# Example suite. Since we're just filtering to files already within the root test/javascripts, these files will also
- Exclude checks