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

elem: Fix lint and generate issues #205

Merged
merged 10 commits into from May 25, 2018
Merged

Conversation

bzub
Copy link
Contributor

@bzub bzub commented May 24, 2018

CI currently fails on the elem package due to some function comments not being manipulated as needed to satisfy go vet. Also, running go generate on the elem package generated invalid code because of changes to the MDN website. This PR fixes those issues and touches up some MDN description irregularities.

@codecov-io
Copy link

codecov-io commented May 24, 2018

Codecov Report

Merging #205 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #205   +/-   ##
=======================================
  Coverage   52.22%   52.22%           
=======================================
  Files           3        3           
  Lines         653      653           
=======================================
  Hits          341      341           
  Misses        258      258           
  Partials       54       54

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03f625a...0a6b32c. Read the comment docs.

The first one is replaced with funName, the rest were not added back and
were blank. This is a bug fix.
elem/elem.gen.go Outdated
//
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub
func Subscript(markup ...vecty.MarkupOrChild) *vecty.HTML {
return vecty.Tag("sub", markup...)
}

// Summary is used as a summary, caption, or legend for the content of a
// <details> element.
// Summary element specifies a summary, caption, or legend for a <details>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to fix this to remove the word element or make it a proper sentence somehow.

elem/elem.gen.go Outdated
// Template is a mechanism for holding client-side content that is not to be
// rendered when a page is loaded but may subsequently be instantiated during
// runtime using JavaScript.
// Template element is a mechanism for holding client-side content that is not
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@slimsag
Copy link
Member

slimsag commented May 24, 2018

aside from inline comments, I am fine with merging this.

@bzub
Copy link
Contributor Author

bzub commented May 24, 2018

Good catch, there were several of the same type of pattern that weren't matched/corrected. The diff on the last commit seems to only get rid of the extra "element" you commented about. Yay.

Copy link
Member

@slimsag slimsag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@slimsag slimsag merged commit a3bd138 into hexops:master May 25, 2018
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.

None yet

3 participants