Opetushallitus/eperusteet-frontend-utils

View on GitHub
components/termisto/termisto.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function link has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            link: function (scope: any, element) {
                scope.popovers = [];

                function destroy() {
                    element.find(TERMI_MATCHER).each(function () {
Severity: Major
Found in components/termisto/termisto.ts - About 2 hrs to fix

    Function setup has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    function setup() {
                        element.find(TERMI_MATCHER).each(function () {
                            var jqEl: any = angular.element(this);
                            var viiteId: any = jqEl.attr('data-viite');
                            TermistoData.getByAvain(viiteId, $stateParams.ktId).then(function(res) {
    Severity: Minor
    Found in components/termisto/termisto.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status