Skip to content
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

Merged
merged 4 commits into from
Feb 24, 2024
Merged

Fix/table capitalisation #498

merged 4 commits into from
Feb 24, 2024

Conversation

opoudjis
Copy link
Contributor

Metanorma PR checklist

@opoudjis opoudjis self-assigned this Feb 24, 2024
ret.gsub("-", "‑").gsub(/ /, " ")
end

def biblio_ref_entry_code(_ordinal, idents, _id, _standard, datefn, _bib)
Copy link

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)
Copy link

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})]"))
Copy link

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})]"))
Copy link

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)
Copy link

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)
Copy link

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]

@opoudjis opoudjis merged commit 4e4b16e into main Feb 24, 2024
18 of 20 checks passed
@opoudjis opoudjis deleted the fix/table-capitalisation branch February 24, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant