CLOSER-Cohorts/archivist

View on GitHub
app/models/question_item.rb

Summary

Maintainability
A
0 mins
Test Coverage

Ambiguous block operator. Parenthesize the method arguments if it's surely a block operator, or add a whitespace to the right of the & if it should be a binary AND.
Open

    rds_qs.order(:rd_order).includes(:response_domain).map &:response_domain
Severity: Minor
Found in app/models/question_item.rb by rubocop

This cop checks for ambiguous operators in the first argument of a method invocation without parentheses.

Example:

# bad

# The `*` is interpreted as a splat operator but it could possibly be
# a `*` method invocation (i.e. `do_something.*(some_array)`).
do_something *some_array

Example:

# good

# With parentheses, there's no ambiguity.
do_something(*some_array)

There are no issues that match your filters.

Category
Status