Opetushallitus/eperusteet-frontend-utils

View on GitHub
vue/src/plugins/oikeustarkastelu.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function install has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static install(vue: typeof Vue, config: OikeustarkasteluConfig) {
    vue.prototype.$isAdmin = () => config.oikeusProvider.isAdmin?.value || false;
    vue.prototype.$hasOphCrud = () => config.oikeusProvider.hasOphCrud?.value || false;

    vue.prototype.$hasOikeus = function(oikeus: Oikeus, kohde?: any) {
Severity: Minor
Found in vue/src/plugins/oikeustarkastelu.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status