open-learning-exchange/planet

View on GitHub
src/app/resources/resources-add.component.ts

Summary

Maintainability
B
4 hrs
Test Coverage

File resources-add.component.ts has 292 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { UserService } from '../shared/user.service';
import {
  FormBuilder,
Severity: Minor
Found in src/app/resources/resources-add.component.ts - About 3 hrs to fix

    Function createForm has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      createForm() {
        this.resourceForm = this.fb.group({
          title: [
            '',
            CustomValidators.required,
    Severity: Minor
    Found in src/app/resources/resources-add.component.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status