rosa-abf/rosa-build

View on GitHub
app/controllers/platforms/mass_builds_controller.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Method show_fail_reason has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def show_fail_reason
respond_to do |format|
format.html {
@build_lists = @mass_build.build_lists.where(status: BuildList::BUILD_ERROR).page(params[:page])
data = @build_lists.pluck(:id, :project_id, :arch_id, :fail_reason)
Severity: Minor
Found in app/controllers/platforms/mass_builds_controller.rb - About 1 hr to fix

    Method show_fail_reason has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
    Open

    def show_fail_reason
    respond_to do |format|
    format.html {
    @build_lists = @mass_build.build_lists.where(status: BuildList::BUILD_ERROR).page(params[:page])
    data = @build_lists.pluck(:id, :project_id, :arch_id, :fail_reason)
    Severity: Minor
    Found in app/controllers/platforms/mass_builds_controller.rb - About 1 hr to fix
    Category
    Status