rosa-abf/rosa-build

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

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 1 of 1 total issue

Method update_average_build_time has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

def update_average_build_time
if status_changed?
self.started_at = Time.now if status == self.class::BUILD_STARTED
if [self.class::BUILD_ERROR,
self.class::SUCCESS,
Severity: Minor
Found in app/models/concerns/build_list_observer.rb - About 2 hrs to fix

There are no issues that match your filters.

Category
Status