rokumatsumoto/boyutluseyler

View on GitHub
app/models/concerns/sortable.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for simple_sorts is too high. [<0, 18, 0> 18/15]
Open

    def simple_sorts
      {
        'created_asc' => -> { order_created_asc },
        'created_date' => -> { order_created_desc },
        'created_desc' => -> { order_created_desc },
Severity: Minor
Found in app/models/concerns/sortable.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric and https://en.wikipedia.org/wiki/ABC_Software_Metric.

There are no issues that match your filters.

Category
Status