Showing 3 of 3 total issues
Method condition_for_suspended_column
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. New
New
def self.condition_for_suspended_column(column, value, like_pattern) start_year = value[:start_year].present? ? value[:start_year].to_i : 1 end_year = value[:end_year].present? ? value[:end_year].to_i : 1 active = value[:active_suspension]
- Read upRead up
File scholarship_durations_controller.rb
has 255 lines of code (exceeds 250 allowed). Consider refactoring. New
New
class ScholarshipDurationsController < ApplicationController authorize_resource active_scaffold :scholarship_duration do |config| config.action_links.add "to_pdf",
Method condition_for_suspended_column
has 41 lines of code (exceeds 25 allowed). Consider refactoring. New
New
def self.condition_for_suspended_column(column, value, like_pattern) start_year = value[:start_year].present? ? value[:start_year].to_i : 1 end_year = value[:end_year].present? ? value[:end_year].to_i : 1 active = value[:active_suspension]