dpn-admin/dpn-sync

View on GitHub
app/dpn_sync.rb

Summary

Maintainability
A
0 mins
Test Coverage

Parenthesize the param proc { File.expand_path(File.join(root, 'app', 'views')) } to make sure that the block will be associated with the proc method call.
Open

    set :views, proc { File.expand_path(File.join(root, 'app', 'views')) }
Severity: Minor
Found in app/dpn_sync.rb by rubocop

This cop checks for ambiguous block association with method when param passed without parentheses.

Example:

# bad
some_method a { |val| puts val }

Example:

# good
# With parentheses, there's no ambiguity.
some_method(a) { |val| puts val }

# good
# Operator methods require no disambiguation
foo == bar { |b| b.baz }

# good
# Lambda arguments require no disambiguation
foo = ->(bar) { bar.baz }

There are no issues that match your filters.

Category
Status