metanorma/metanorma-ietf

View on GitHub
lib/isodoc/ietf/section.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method common_rfc_pis has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def common_rfc_pis(node)
        rfc_pis = {
          artworkdelimiter: node.at(ns("//pi/artworkdelimiter"))&.text,
          artworklines: node.at(ns("//pi/artworklines"))&.text,
          authorship: node.at(ns("//pi/authorship"))&.text,
Severity: Minor
Found in lib/isodoc/ietf/section.rb - About 1 hr to fix

    Method rfc_attributes has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          def rfc_attributes(docxml)
            # t = Time.now.getutc
            obs = xpath_comma(docxml
              .xpath(ns("//bibdata/relation[@type = 'obsoletes']/bibitem/docidentifier[not(@scope)]")))
            upd = xpath_comma(docxml
    Severity: Minor
    Found in lib/isodoc/ietf/section.rb - About 1 hr to fix

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

            def clause_parse_title(_node, div, clause, _out, _heading_attrs = {})
      Severity: Minor
      Found in lib/isodoc/ietf/section.rb - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status