afimb/chouette2

View on GitHub
app/maps/route_section_selector_map.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method customize_map has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def customize_map(map, page)
    layer = kml_layer([route_section_selector.itinerary.referential, route_section_selector.itinerary.route.line, route_section_selector.itinerary.route, route_section_selector.itinerary],
                      { rendererOptions: { zIndexing: true }, styleMap: Design::JourneyPatternStyleMap.new(helpers).style_map })
    page.assign 'journeyPatternLayer', layer

Severity: Major
Found in app/maps/route_section_selector_map.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status