extinctionrebellion/RebelsManager

View on GitHub
app/controllers/rebels_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Complex method RebelsController#update (25.8)
Open

  def update
    service = Rebels::UpdateService.new(rebel: Rebel.find(params[:id]))
    if service.run(params)
      respond_to do |format|
        format.html {
Severity: Minor
Found in app/controllers/rebels_controller.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method RebelsController#index (20.8)
Open

  def index
    respond_to do |format|
      format.csv do
        respond_to_csv_for_rebels
      end
Severity: Minor
Found in app/controllers/rebels_controller.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

There are no issues that match your filters.

Category
Status