am-kantox/dry-mutations

View on GitHub
lib/dry/mutations/utils/procs.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

      #   TODO: Make it possible to choose friendly hash implementation
Severity: Minor
Found in lib/dry/mutations/utils/procs.rb by fixme

Use warn instead of $stderr.puts to allow such output to be disabled.
Open

        $stderr.puts [
Severity: Minor
Found in lib/dry/mutations/utils/procs.rb by rubocop

This cop identifies places where $stderr.puts can be replaced by warn. The latter has the advantage of easily being disabled by, e.g. the -W0 interpreter flag, or setting $VERBOSE to nil.

Example:

# bad
$stderr.puts('hello')

# good
warn('hello')

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

        else fail ArgumentError, "The executor given can not be executed (forgot to specify :method param?)"
Severity: Minor
Found in lib/dry/mutations/utils/procs.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

There are no issues that match your filters.

Category
Status