metanorma/html2doc

View on GitHub
lib/html2doc/math.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method unitalic has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def unitalic(math)
    math.xpath(".//xmlns:r[xmlns:rPr[not(xmlns:scr)]/xmlns:sty[@m:val = 'p']]").each do |x|
      x.wrap("<span #{HTML_NS} style='font-style:normal;'></span>")
    end
    math.xpath(".//xmlns:r[xmlns:rPr[not(xmlns:scr)]/xmlns:sty[@m:val = 'bi']]").each do |x|
Severity: Minor
Found in lib/html2doc/math.rb - About 1 hr to fix

    Method progress_conv has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def progress_conv(idx, step, total, threshold, msg)
    Severity: Minor
    Found in lib/html2doc/math.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status