knsv/mermaid

View on GitHub
cypress/platform/viewer.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function contentLoadedApi has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const contentLoadedApi = async function () {
  let pos = document.location.href.indexOf('?graph=');
  if (pos > 0) {
    pos = pos + 7;
    const graphBase64 = document.location.href.substr(pos);
Severity: Minor
Found in cypress/platform/viewer.js - About 1 hr to fix

    Function contentLoaded has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const contentLoaded = async function () {
      let pos = document.location.href.indexOf('?graph=');
      if (pos > 0) {
        pos = pos + 7;
        const graphBase64 = document.location.href.substr(pos);
    Severity: Minor
    Found in cypress/platform/viewer.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status