am-kantox/dry-mutations

View on GitHub
lib/dry/mutations/predicates.rb

Summary

Maintainability
A
0 mins
Test Coverage

FIXME found
Open

      # FIXME: at the moment this is an exact equivalent of :type? => User
Severity: Minor
Found in lib/dry/mutations/predicates.rb by fixme

Favor a normal unless-statement over a modifier clause in a multiline statement.
Open

        expected = begin
                     ::Kernel.const_get(expected)
                   rescue TypeError => e
                     raise Errors::TypeError, "Bad “model” type. Error: [#{e.message}]"
                   rescue NameError => e
Severity: Minor
Found in lib/dry/mutations/predicates.rb by rubocop

Checks for uses of if/unless modifiers with multiple-lines bodies.

Example:

# bad
{
  result: 'this should not happen'
} unless cond

# good
{ result: 'ok' } if cond

There are no issues that match your filters.

Category
Status