Opetushallitus/eperusteet-opintopolku

View on GitHub
eperusteet-opintopolku-app/yo/app/scripts/views/etusivu.ts

Summary

Maintainability
B
4 hrs
Test Coverage

File etusivu.ts has 296 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
Severity: Minor
Found in eperusteet-opintopolku-app/yo/app/scripts/views/etusivu.ts - About 3 hrs to fix

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

            this.fetch = (cb, errorCb) => {
                const key = "koulutustyyppi_1x";
                const params = paramMap[key];
                const amDeferred = Perusteet.get(params, res => {
                    perusteet[key] = res.data;
    Severity: Minor
    Found in eperusteet-opintopolku-app/yo/app/scripts/views/etusivu.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status