flant/superhosting

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

Summary

Maintainability
A
0 mins
Test Coverage

Use && instead of and.
Open

        if index_item.etc_mapper.nil? and index_item.lib_mapper.nil?

This cop checks for uses of and and or, and suggests using && and || instead. It can be configured to check only in conditions, or in all contexts.

Example: EnforcedStyle: always (default)

# bad
foo.save and return

# bad
if foo and bar
end

# good
foo.save && return

# good
if foo && bar
end

Example: EnforcedStyle: conditionals

# bad
if foo and bar
end

# good
foo.save && return

# good
foo.save and return

# good
if foo && bar
end

There are no issues that match your filters.

Category
Status