decko-commons/decko

View on GitHub
card/spec/support/matchers/file_matchers.rb

Summary

Maintainability
A
0 mins
Test Coverage

Avoid the use of the case equality operator ===.
Open

    @size === @file.size

This cop checks for uses of the case equality operator(===).

Example:

# bad
Array === something
(1..100) === 7
/something/ === some_string

# good
something.is_a?(Array)
(1..100).include?(7)
some_string =~ /something/

Avoid the use of the case equality operator ===.
Open

    @size === @file.file.size

This cop checks for uses of the case equality operator(===).

Example:

# bad
Array === something
(1..100) === 7
/something/ === some_string

# good
something.is_a?(Array)
(1..100).include?(7)
some_string =~ /something/

There are no issues that match your filters.

Category
Status