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

editor table in preface: https://github.com/metanorma/metanorma-itu/i… #349

Merged
merged 2 commits into from
Nov 12, 2022

Conversation

opoudjis
Copy link
Contributor

@opoudjis opoudjis commented Nov 12, 2022

…ssues/336

Metanorma PR checklist

@opoudjis opoudjis self-assigned this Nov 12, 2022
l10n(d.reverse.join(" "))
end

def amendment_id(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 amendment_id is too high. [<6, 14, 2> 15.36/15]

INS
end

def ddMMMyyyy(date)
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 ddMMMyyyy is too high. [<7, 25, 8> 27.17/15]
Cyclomatic complexity for ddMMMyyyy is too high. [9/6]
Method has too many lines. [14/10]
Perceived complexity for ddMMMyyyy is too high. [8/7]
Use snake_case for method names.

end
end

def bibdata_title_resolution(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 bibdata_title_resolution is too high. [<7, 23, 8> 25.34/15]
Cyclomatic complexity for bibdata_title_resolution is too high. [8/6]
Perceived complexity for bibdata_title_resolution is too high. [8/7]

expect(File.exist?("test.doc")).to be true
html = File.read("test.doc", encoding: "UTF-8")
expect(xmlpp(html
.gsub(%r{.*<p class="h1Preface">History</p>}m, '<div><p class="h1Preface">History</p>')
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. [93/80]

IsoDoc::ITU::WordConvert.new({}).convert("test", presxml, false)
html = File.read("test.doc", encoding: "utf-8")
expect(xmlpp(html
.gsub(%r{^.*<div class="WordSection3">}m, '<div class="WordSection3" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml">')
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. [131/80]

expect(File.exist?("test.doc")).to be true
html = File.read("test.doc", encoding: "UTF-8")
expect(xmlpp(html
.sub(%r{^.*<div class="WordSection3">}m, %{<body><div class="WordSection3">})
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. [83/80]

expect(xmlpp(IsoDoc::ITU::WordConvert.new({})
.convert("test", input, true)
.gsub(%r{^.*<div class="WordSection2">}m, '<div class="WordSection2">')
.gsub(%r{<p>\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*}m, "")))
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. [101/80]

@opoudjis opoudjis merged commit 73d69cf into main Nov 12, 2022
@opoudjis opoudjis deleted the features/editors-section branch November 12, 2022 12:28
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