flant/superhosting

View on GitHub
lib/superhosting/controller/admin/index.rb

Summary

Maintainability
A
0 mins
Test Coverage

Unnecessary spacing detected.
Open

        self.class.index ||=  with_profile('admin_index') { reindex }

This cop checks for extra/unnecessary whitespace.

Example:

# good if AllowForAlignment is true
name      = "RuboCop"
# Some comment and an empty line

website  += "/bbatsov/rubocop" unless cond
puts        "rubocop"          if     debug

# bad for any configuration
set_app("RuboCop")
website  = "https://github.com/bbatsov/rubocop"

Operator ||= should be surrounded by a single space.
Open

        self.class.index ||=  with_profile('admin_index') { reindex }

Checks that operators have space around them, except for ** which should not have surrounding space.

Example:

# bad
total = 3*4
"apple"+"juice"
my_number = 38/4
a ** b

# good
total = 3 * 4
"apple" + "juice"
my_number = 38 / 4
a**b

There are no issues that match your filters.

Category
Status