knsv/mermaid

View on GitHub
packages/mermaid/src/diagrams/pie/pieRenderer.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function draw has 123 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const draw: DrawDefinition = (text, id, _version, diagObj) => {
  log.debug('rendering pie chart\n' + text);
  const db = diagObj.db as PieDB;
  const globalConfig: MermaidConfig = getConfig();
  const pieConfig: Required<PieDiagramConfig> = cleanAndMerge(db.getConfig(), globalConfig.pie);
Severity: Major
Found in packages/mermaid/src/diagrams/pie/pieRenderer.ts - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status