metanorma/metanorma

View on GitHub
lib/metanorma/sectionsplit_links.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Class Sectionsplit has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Sectionsplit
    def xref_preprocess(xml, _fileslookup, _identifier)
      key = (0...8).map { rand(65..90).chr }.join # random string
      xml.root["type"] = key # to force recognition of internal refs
      # bookmarks etc as new id elements introduced in Presentation XML:
Severity: Minor
Found in lib/metanorma/sectionsplit_links.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status