armandofox/audience1st

View on GitHub
lib/authenticated_system.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
89%

Useless setter call to local variable cookies.
Open

      cookies[:auth_token] = {
Severity: Minor
Found in lib/authenticated_system.rb by rubocop

This cop checks for setter call to local variable as the final expression of a function definition.

Example:

# bad

def something
  x = Something.new
  x.attr = 5
end

Example:

# good

def something
  x = Something.new
  x.attr = 5
  x
end

There are no issues that match your filters.

Category
Status