metanorma/metanorma

View on GitHub
lib/metanorma/collection_fileparse.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Class CollectionRenderer has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

  class CollectionRenderer
    # Resolves references to other files in the collection. Three routines:
    # 1. Eref to a document that has been split into multiple documents
    # (sectionsplit) are resolved to direct eref to the split document
    # 2. Indirect erefs to a file anchor in an unknwon file in the collection
Severity: Minor
Found in lib/metanorma/collection_fileparse.rb - About 2 hrs to fix

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

        def update_indirect_refs_to_docs1(_docxml, key, file, bibitems, erefs)
    Severity: Minor
    Found in lib/metanorma/collection_fileparse.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status