app/controllers/platforms/mass_builds_controller.rb
Showing 2 of 2 total issues
Method show_fail_reason
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)
Method show_fail_reason
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
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)
- Read upRead up