nycJSorg/angular-presentation

View on GitHub
libs/code-demos/src/lib/shared/sandbox.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function injectIframe has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function injectIframe(
  element: any,
  config: SandboxConfig
): Promise<SandBox> {
  if (iframes.has(element)) {
Severity: Minor
Found in libs/code-demos/src/lib/shared/sandbox.ts - About 1 hr to fix

    Function onload has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        iframe.contentWindow.onload = () => {
          function setHtml(html) {
            iframe.contentDocument.body.innerHTML = html;
          }
    
    
    Severity: Minor
    Found in libs/code-demos/src/lib/shared/sandbox.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status