afimb/chouette2

View on GitHub
app/models/rule_parameter_set.rb

Summary

Maintainability
C
1 day
Test Coverage

Method mode_default_params has 128 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.mode_default_params
    {
    :coach => {
      :allowed_transport_mode_coach => false,
      :inter_stop_area_distance_min_mode_coach => 500,
Severity: Major
Found in app/models/rule_parameter_set.rb - About 5 hrs to fix

    File rule_parameter_set.rb has 312 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    class RuleParameterSet < ActiveRecord::Base
      belongs_to :organisation
    
      #validates_presence_of :referential
      validates_presence_of :name
    Severity: Minor
    Found in app/models/rule_parameter_set.rb - About 3 hrs to fix

      Class RuleParameterSet has 25 methods (exceeds 20 allowed). Consider refactoring.
      Open

      class RuleParameterSet < ActiveRecord::Base
        belongs_to :organisation
      
        #validates_presence_of :referential
        validates_presence_of :name
      Severity: Minor
      Found in app/models/rule_parameter_set.rb - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status