knsv/mermaid

View on GitHub
packages/mermaid/src/utils/sanitizeDirective.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function sanitizeDirective has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const sanitizeDirective = (args: any): void => {
  log.debug('sanitizeDirective called with', args);

  // Return if not an object
  if (typeof args !== 'object' || args == null) {
Severity: Minor
Found in packages/mermaid/src/utils/sanitizeDirective.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status