extinctionrebellion/RebelsManager

View on GitHub
app/services/rebels/update_service.rb

Summary

Maintainability
A
1 hr
Test Coverage
A
96%

Method rebel_params has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def rebel_params(params)
      params
        .require(:rebel)
        .permit(
          :agree_with_principles,
Severity: Minor
Found in app/services/rebels/update_service.rb - About 1 hr to fix

    Complex method Rebels::UpdateService#run! (21.4)
    Wontfix

        def run!(params = {})
          current_email = rebel.email
          current_local_group = rebel.local_group
          rebel.attributes = rebel_params(params)
          validate_email_format!
    Severity: Minor
    Found in app/services/rebels/update_service.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