app/services/rebels/update_service.rb
Method rebel_params
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def rebel_params(params)
params
.require(:rebel)
.permit(
:agree_with_principles,
Complex method Rebels::UpdateService#run! (21.4) Wontfix
Wontfix
def run!(params = {})
current_email = rebel.email
current_local_group = rebel.local_group
rebel.attributes = rebel_params(params)
validate_email_format!
- Read upRead up
- Exclude checks
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