dry-rb/dry-monads

View on GitHub
lib/dry/monads/result.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
61%

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

          Failure === other && failure === other.failure
Severity: Minor
Found in lib/dry/monads/result.rb by rubocop

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/

Line is too long. [102/100]
Open

        #   Dry::Monads.Failure(ArgumentError.new('error message')).or(&:message) # => "error message"
Severity: Minor
Found in lib/dry/monads/result.rb by rubocop

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

          Failure === other && failure === other.failure
Severity: Minor
Found in lib/dry/monads/result.rb by rubocop

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/

Line is too long. [101/100]
Open

        # A lifted version of `#or`. Wraps the passed value or the block result with Result::Success.
Severity: Minor
Found in lib/dry/monads/result.rb by rubocop

There are no issues that match your filters.

Category
Status