Showing 661 of 695 total issues
Useless assignment to variable - backtrace
. Open
backtrace = @example_locations["#{parent.description} #{example_name}"]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for every useless assignment to local variable in every
scope.
The basic idea for this cop was from the warning of ruby -cw
:
assigned but unused variable - foo
Currently this cop has advanced logic that detects unreferenced reassignments and properly handles varied cases such as branch, loop, rescue, ensure, etc.
Example:
# bad
def some_method
some_var = 1
do_something
end
Example:
# good
def some_method
some_var = 1
do_something(some_var)
end
Start context description with 'when', 'with', or 'without'. Open
context "text format" do
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
context "pointer format" do
- Create a ticketCreate a ticket
- Exclude checks
Missing top-level module documentation comment. Open
module Relation
- Read upRead up
- Create a ticketCreate a ticket
- 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. [96/90] Open
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- Create a ticketCreate a ticket
- Exclude checks
Re-enable Lint/AmbiguousRegexpLiteral cop with # rubocop:enable
after disabling it. Open
# rubocop:disable Lint/AmbiguousRegexpLiteral
- Create a ticketCreate a ticket
- Exclude checks
Missing top-level class documentation comment. Open
class CucumberCommand < Cardio::Command::CommandBase
- Read upRead up
- Create a ticketCreate a ticket
- 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
Start context description with 'when', 'with', or 'without'. Open
context "called on Symbol" do
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
expect(subject.id).to eq Card::LogoID
- Create a ticketCreate a ticket
- Exclude checks
Remove debugger entry point binding.pry
. Open
binding.pry
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for calls to debugger or pry.
Example:
# bad (ok during development)
# using pry
def some_method
binding.pry
do_something
end
Example:
# bad (ok during development)
# using byebug
def some_method
byebug
do_something
end
Example:
# good
def some_method
do_something
end
Re-enable Lint/AmbiguousRegexpLiteral cop with # rubocop:enable
after disabling it. Open
# rubocop:disable Lint/AmbiguousRegexpLiteral
- Create a ticketCreate a ticket
- Exclude checks
Missing top-level class documentation comment. Open
class RenderTest < ActionDispatch::PerformanceTest
- Read upRead up
- Create a ticketCreate a ticket
- 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
Missing top-level class documentation comment. Open
class Flagger
- Read upRead up
- Create a ticketCreate a ticket
- 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
Start context description with 'when', 'with', or 'without'. Open
context "jpg" do
- Create a ticketCreate a ticket
- Exclude checks
The second argument to describe should be the method being tested. '#instance' or '.class'. Open
RSpec.describe CardController, "location test from old integration" do
- Create a ticketCreate a ticket
- Exclude checks
Remove debugger entry point binding.pry
. Open
binding.pry
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for calls to debugger or pry.
Example:
# bad (ok during development)
# using pry
def some_method
binding.pry
do_something
end
Example:
# bad (ok during development)
# using byebug
def some_method
byebug
do_something
end
Example:
# good
def some_method
do_something
end
Missing top-level class documentation comment. Open
class Commands < Cardio::Command
- Read upRead up
- Create a ticketCreate a ticket
- 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
The second argument to describe should be the method being tested. '#instance' or '.class'. Open
RSpec.describe ActiveJob::Arguments, "serialize patch" do
- Create a ticketCreate a ticket
- Exclude checks
Missing top-level module documentation comment. Open
module AbstractAdapter
- Read upRead up
- Create a ticketCreate a ticket
- 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. [125/90] Open
# watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
- Create a ticketCreate a ticket
- Exclude checks