-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/table capitalisation #498
Conversation
ret.gsub("-", "‑").gsub(/ /, " ") | ||
end | ||
|
||
def biblio_ref_entry_code(_ordinal, idents, _id, _standard, datefn, _bib) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid parameter lists longer than 5 parameters. [6/5]
bibitem["hidden"] == "true" || bibitem.parent["hidden"] == "true" | ||
end | ||
|
||
def norm_ref_entry_code(_ordinal, idents, _ids, _standard, datefn, _bib) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid parameter lists longer than 5 parameters. [6/5]
prim = "[@primary = 'true']" | ||
id = bib.xpath(ns("./docidentifier#{prim}[not(#{skip} or #{skip1})]")) | ||
id.empty? and id = bib.xpath(ns("./docidentifier#{prim}[not(#{skip1})]")) | ||
id.empty? and id = bib.xpath(ns("./docidentifier[not(#{skip} or #{skip1})]")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [85/80]
skip1 = "@type = 'metanorma' or @type = 'metanorma-ordinal'" | ||
prim = "[@primary = 'true']" | ||
id = bib.xpath(ns("./docidentifier#{prim}[not(#{skip} or #{skip1})]")) | ||
id.empty? and id = bib.xpath(ns("./docidentifier#{prim}[not(#{skip1})]")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [81/80]
xml.children = "#{f}#{xml.xpath(ns(keep)).to_xml}" | ||
end | ||
|
||
def multi_bibitem_ref_code(bib) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assignment Branch Condition size for multi_bibitem_ref_code is too high. [<8, 14, 7> 17.58/15]
Cyclomatic complexity for multi_bibitem_ref_code is too high. [7/6]
super | ||
end | ||
|
||
def capitalise_unless_text_transform(elem) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cyclomatic complexity for capitalise_unless_text_transform is too high. [7/6]
Metanorma PR checklist