af83/chouette-core

View on GitHub
app/packs/src/shape_editor/controllers/ui/useMapController.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function useMapController has 102 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function useMapController() {
  const SimplifiedLineBuilder = useMemo(() => {
    const getSectionsWithoutState = state => line => getLineSections(line || getGeometry(state), getWaypoints(state))

    return {
Severity: Major
Found in app/packs/src/shape_editor/controllers/ui/useMapController.js - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status