Showing 666 of 699 total issues
Missing top-level module documentation comment. Open
Open
module ClassMethods
- 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
Open
expect(@mail.body.raw_source).to include("Welcome Big Bad Sheep")
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@signup.type_id).to eq(Card::SignupID)
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@signup.format.invitation?).to be(true)
- Create a ticketCreate a ticket
- Exclude checks
Beware of using before(:all)
as it may cause state to leak between tests. If you are using rspec-rails
, and use_transactional_fixtures
is enabled, then records created in before(:all)
are not automatically rolled back. Open
Open
before(:all) do
- Create a ticketCreate a ticket
- Exclude checks
Empty example group detected. Open
Open
describe Card::Set::Right::Status do
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
Open
context "for Joe User" do
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
Open
context "<User>+*email" do
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
@format = @card.format
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
@email_card.update! content: "QuIrE@example.com"
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@signup.account.status).to eq("unverified")
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@parties)
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
Card::Auth.as_bot { r1_members.items = [@joe_user_card.id] }
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
Open
context "blank password" do
- Create a ticketCreate a ticket
- Exclude checks
Empty example group detected. Open
Open
describe Card::Set::Right::Salt do
- Create a ticketCreate a ticket
- Exclude checks
Freeze mutable objects assigned to constants. Open
Open
OK4KEY_RE = '\p{Word}\*'
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).
Example:
# bad
CONST = [1, 2, 3]
# good
CONST = [1, 2, 3].freeze
Start context description with 'when', 'with', or 'without'. Open
Open
context "do not stabilize" do
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
@account = @signup.account
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@signup.type_id).to eq(Card::SignupID)
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@account.email).to eq("wolf@decko.org")
- Create a ticketCreate a ticket
- Exclude checks