jrbeilke/teamsupport

View on GitHub
lib/teamsupport/customer.rb

Summary

Maintainability
A
0 mins
Test Coverage

This conditional expression can just be replaced by @attrs[:NeedsIndexing] == 'True'.
Open

      @attrs[:NeedsIndexing] == 'True' ? true : false
Severity: Minor
Found in lib/teamsupport/customer.rb by rubocop

This cop checks for redundant returning of true/false in conditionals.

Example:

# bad
x == y ? true : false

# bad
if x == y
  true
else
  false
end

# good
x == y

# bad
x == y ? false : true

# good
x != y

This conditional expression can just be replaced by @attrs[:IsActive] == 'True'.
Open

      @attrs[:IsActive] == 'True' ? true : false
Severity: Minor
Found in lib/teamsupport/customer.rb by rubocop

This cop checks for redundant returning of true/false in conditionals.

Example:

# bad
x == y ? true : false

# bad
if x == y
  true
else
  false
end

# good
x == y

# bad
x == y ? false : true

# good
x != y

This conditional expression can just be replaced by @attrs[:HasPortalAccess] == 'True'.
Open

      @attrs[:HasPortalAccess] == 'True' ? true : false
Severity: Minor
Found in lib/teamsupport/customer.rb by rubocop

This cop checks for redundant returning of true/false in conditionals.

Example:

# bad
x == y ? true : false

# bad
if x == y
  true
else
  false
end

# good
x == y

# bad
x == y ? false : true

# good
x != y

There are no issues that match your filters.

Category
Status