DemocracyOS/app

View on GitHub
lib/site/topic-layout/topic-article/comments/parse-comment.js

Summary

Maintainability
A
1 hr
Test Coverage

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

export default function parseComment (comment) {
  return new Promise((resolve, reject) => {
    if (!comment.text) return resolve(comment)
    marked(comment.text, {
      sanitize: true,
Severity: Minor
Found in lib/site/topic-layout/topic-article/comments/parse-comment.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status