lib/aixm/feature/obstacle.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Class Obstacle has 24 methods (exceeds 20 allowed). Consider refactoring.
Open

    class Obstacle < Feature
      include AIXM::Concerns::Association
      include AIXM::Concerns::Remarks

      public_class_method :new
Severity: Minor
Found in lib/aixm/feature/obstacle.rb - About 2 hrs to fix

    Method add_to has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          def add_to(builder, delegate: true)
            obstacle_group = self.obstacle_group || singleton_obstacle_group
            return obstacle_group.add_to(builder) if delegate && AIXM.ofmx?
            builder.comment "Obstacle: [#{type}] #{xy.to_s} #{name}".dress
            builder.text "\n"
    Severity: Minor
    Found in lib/aixm/feature/obstacle.rb - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status