MSakamaki/ngx-onesignal

View on GitHub
tools/schematics/ng-add/setup.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function replaceServiceWorkerScript has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function replaceServiceWorkerScript(options: ngxOneSignalSchema): Rule {
  return (tree: Tree, context: SchematicContext) => {
    const workspace = getWorkspace(tree);
    const project = getProjectFromWorkspace(workspace, options.project);
    const modulePath = getAppModulePath(tree, getProjectMainFile(project));
Severity: Minor
Found in tools/schematics/ng-add/setup.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status