RomainMarecat/slate

View on GitHub
src/shared/admin/product/product-edit/product-edit.component.ts

Summary

Maintainability
C
1 day
Test Coverage

Showing 2 of 2 total issues

ProductEditComponent has 40 functions (exceeds 20 allowed). Consider refactoring.
Open

@Component({
selector: 'app-product-edit',
templateUrl: './product-edit.component.html',
styleUrls: ['./product-edit.component.scss']
})
Severity: Minor
Found in src/shared/admin/product/product-edit/product-edit.component.ts - About 5 hrs to fix

    File product-edit.component.ts has 330 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';
    import { FormArray, FormGroup } from '@angular/forms';
    import { ActivatedRoute, Router } from '@angular/router';
    import { DocumentReference } from '@firebase/firestore-types';
    import { UploadTaskSnapshot } from '@firebase/storage-types';
    Severity: Minor
    Found in src/shared/admin/product/product-edit/product-edit.component.ts - About 3 hrs to fix
      Category
      Status