scottwillson/racing_on_rails

View on GitHub
app/models/calculations/v3/calculation.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method calculate! has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def calculate!(source_calculations: true)
    ActiveSupport::Notifications.instrument "calculate.calculations.#{name}.racing_on_rails" do
      clear_cache
      clear_source_results_cache
      calculate_source_calculations if source_calculations
Severity: Minor
Found in app/models/calculations/v3/calculation.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status