knsv/mermaid

View on GitHub
packages/mermaid/src/diagrams/timeline/styles.js

Summary

Maintainability
A
1 hr
Test Coverage

Function genSections has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const genSections = (options) => {
  let sections = '';

  for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
    options['lineColor' + i] = options['lineColor' + i] || options['cScaleInv' + i];
Severity: Minor
Found in packages/mermaid/src/diagrams/timeline/styles.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status