ManageIQ/manageiq-ui-classic

View on GitHub
app/controllers/workflow_repository_controller.rb

Summary

Maintainability
A
3 hrs
Test Coverage
D
63%

Class WorkflowRepositoryController has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

class WorkflowRepositoryController < ApplicationController
  before_action :check_prototype

  before_action :check_privileges
  before_action :get_session_data
Severity: Minor
Found in app/controllers/workflow_repository_controller.rb - About 2 hrs to fix

Method button has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def button
    case params[:pressed]
    when 'embedded_configuration_script_source_refresh' # refresh repositories
      repository_refresh
    when "embedded_configuration_script_source_edit" # edit repository
Severity: Minor
Found in app/controllers/workflow_repository_controller.rb - About 1 hr to fix

There are no issues that match your filters.

Category
Status