Showing 661 of 695 total issues
Empty example group detected. Open
Open
describe Card::Set::Right::Help do
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
["/update/#{@account.left.name.url_key}",
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
Open
context "create permissions" do
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
Open
context "deleting" do
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
expect(subject.file.url).to(
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
.to eq "~#{subject.id}/#{subject.last_action_id}.jpg"
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
.to eq("/files/~#{subject.id}/#{subject.last_action_id}-medium.jpg")
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
subject.update!(
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
subject.delete_files_for_action(subject.last_action)
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
expect(subject.attachment.db_content)
- Create a ticketCreate a ticket
- Exclude checks
Do not prefix writer method names with set_
. Open
Open
def set_modules_accordion subject
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop makes sure that accessor methods are named properly.
Example:
# bad
def set_attribute(value)
end
# good
def attribute=(value)
end
# bad
def get_attribute
end
# good
def attribute
end
Use let
instead of an instance variable. Open
Open
@account = Card::Auth.find_account_by_email(@email)
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
@account.update! trigger: :reset_password
- Create a ticketCreate a ticket
- Exclude checks
Empty example group detected. Open
Open
describe Card::Set::Right::Update do
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
expect(subject.file.read.strip).to eq "file1"
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
expect(subject.content).to eq ":#{subject.codename}/bootstrap.png"
- Create a ticketCreate a ticket
- Exclude checks
Name your test subject if you need to reference it explicitly. Open
Open
path = subject.image.path
- Create a ticketCreate a ticket
- Exclude checks
Do not prefix writer method names with set_
. Open
Open
def set_patterns_breadcrumb subject
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop makes sure that accessor methods are named properly.
Example:
# bad
def set_attribute(value)
end
# good
def attribute=(value)
end
# bad
def get_attribute
end
# good
def attribute
end
Script file follow_link.rb doesn't have execute permission. Open
Open
#! no set module
- Create a ticketCreate a ticket
- Exclude checks
Prefer annotated tokens (like %<foo>s</foo>
) over unannotated tokens (like %s
). Open
Open
%p
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use a consistent style for named format string tokens.
Note:
unannotated
style cop only works for strings
which are passed as arguments to those methods:
sprintf
, format
, %
.
The reason is that unannotated format is very similar
to encoded URLs or Date/Time formatting strings.
Example: EnforcedStyle: annotated (default)
# bad
format('%{greeting}', greeting: 'Hello')
format('%s', 'Hello')
# good
format('%<greeting>s', greeting: 'Hello')</greeting>
Example: EnforcedStyle: template
# bad
format('%<greeting>s', greeting: 'Hello')
format('%s', 'Hello')
# good
format('%{greeting}', greeting: 'Hello')</greeting>
Example: EnforcedStyle: unannotated
# bad
format('%<greeting>s', greeting: 'Hello')
format('%{greeting}', 'Hello')
# good
format('%s', 'Hello')</greeting>