Opetushallitus/eperusteet-opintopolku

View on GitHub
eperusteet-opintopolku-app/yo/app/scripts/common/directives/murupolku.ts

Summary

Maintainability
C
1 day
Test Coverage

File murupolku.ts has 573 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright (c) 2013 The Finnish Board of Education - Opetushallitus
 *
 * This program is free software: Licensed under the EUPL, Version 1.1 or - as
 * soon as they will be approved by the European Commission - subsequent versions

    Function getPath has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function getPath(state) {
                var tree = [];
                if (!state) {
                    return tree;
                }

      Function update has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function update() {
                  var toState = currentState;
                  if (!toState) {
                      return;
                  }

        There are no issues that match your filters.

        Category
        Status