Showing 661 of 695 total issues
Start context description with 'when', 'with', or 'without'. Open
context "card with account" do
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
context "(search)" do
- Create a ticketCreate a ticket
- Exclude checks
Trailing whitespace detected. Open
See https://rspec.info/features/3-12/rspec-core/command-line/ or
- Create a ticketCreate a ticket
- Exclude checks
The use of eval
is a serious security risk. Open
eval(
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for the use of Kernel#eval
and Binding#eval
.
Example:
# bad
eval(something)
binding.eval(something)
Missing top-level module documentation comment. Open
module Clause
- 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 HostUri < Uri
- 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 Reference < Abstract
- 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
Use let
instead of an instance variable. Open
@bt.type = "Phrase"
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
jb = @jb.refresh true
- Create a ticketCreate a ticket
- Exclude checks
Don't repeat descriptions within an example group. Open
it "one_line_content is rendered as type + raw" do
- Create a ticketCreate a ticket
- Exclude checks
Replace class var @@options with a class instance var. Open
@@options = { compound_only: true }
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for uses of class variables. Offenses are signaled only on assignment to class variables to reduce the number of offenses that would be reported.
Use let
instead of an instance variable. Open
expect(@hat.type_id).to eq(@type.id)
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
expect(@hat.type_card).to eq(@type)
- Create a ticketCreate a ticket
- Exclude checks
Pass __FILE__
and __LINE__
to eval
method, as they are used by backtraces. Open
eval(
"[ #{part} , #{part}.module_eval('binding') ]",
b
)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks eval
method usage. eval
can receive source location
metadata, that are filename and line number. The metadata is used by
backtraces. This cop recommends to pass the metadata to eval
method.
Example:
# bad
eval <<-RUBY
def do_something
end
RUBY
# bad
C.class_eval <<-RUBY
def do_something
end
RUBY
# good
eval <<-RUBY, binding, __FILE__, __LINE__ + 1
def do_something
end
RUBY
# good
C.class_eval <<-RUBY, __FILE__, __LINE__ + 1
def do_something
end
RUBY
The use of eval
is a serious security risk. Open
eval "#{set_module}.module_eval ::File.read('#{abs_path}'), '#{abs_path}'",
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for the use of Kernel#eval
and Binding#eval
.
Example:
# bad
eval(something)
binding.eval(something)
Missing top-level module documentation comment. Open
module Version
- 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 PreferenceCache < Cache
- 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
Empty example group detected. Open
describe Card::Format::CsvFormat do
- Create a ticketCreate a ticket
- Exclude checks
Missing top-level class documentation comment. Open
class TableHelper
- 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