nycJSorg/angular-presentation

View on GitHub
apps/codelab/src/app/shared/helpers/helpers.ts

Summary

Maintainability
C
7 hrs
Test Coverage

File helpers.ts has 322 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { FileConfig } from '../interfaces/file-config';

function exerciseWithConsoleLog(moduleName: string, code: any, code2: any) {
  return {
    ...exercise(moduleName, code, code2),
Severity: Minor
Found in apps/codelab/src/app/shared/helpers/helpers.ts - About 3 hrs to fix

    Function boxAndCircle has 67 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function boxAndCircle() {
      const moduleCode = `import {BrowserModule} from \'@angular/platform-browser\';
      import {NgModule} from '@angular/core';
      import {BoxComponent} from './box.component';
      import {CircleComponent} from './circle.component';
    Severity: Major
    Found in apps/codelab/src/app/shared/helpers/helpers.ts - About 2 hrs to fix

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

      export function displayAngularComponent(
        componentCode: string,
        testCode?: string
      ) {
        // tslint:disable-next-line:max-line-length TODO: Clean up next line and remove this comment.
      Severity: Minor
      Found in apps/codelab/src/app/shared/helpers/helpers.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status