Showing 661 of 695 total issues
Use let
instead of an instance variable. Open
Open
@account = Card::Auth.find_account_by_email(@email)
- 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
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(@account.status).to eq("unverified")
- 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(@account.status).to eq("unapproved")
- 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(@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
rps_view = @card.format.render_reset_password_success
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
@card.update! "+*email" => "joe@admin.com", trigger: :send_reset_password_token
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
.to eq([Card::AnyoneSignedInID, Card::SharkID, @joe_user_card.id])
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
Open
context "signup form form" do
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@account.password.length).to be > 10 # encrypted
- 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
Use let
instead of an instance variable. Open
Open
@parties = @joe_user_card.parties # NOTE: must be called to test resets
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@format.render_raw).to eq("u1@user.com")
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@card).not_to be_ok(:read)
- Create a ticketCreate a ticket
- Exclude checks
Missing top-level module documentation comment. Open
Open
module Variants
- 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(@signup.format.render_core).to have_tag "div.invite-links" 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