Skip to content

Fix most lint errors in resource/ and enable most lints - #8027

Merged
gsnedders merged 2 commits into
masterfrom
lint-resources
Dec 8, 2017
Merged

gsnedders merged 2 commits into
masterfrom
lint-resources

Conversation

@foolip

@foolip foolip commented Nov 1, 2017 •

Copy link
Copy Markdown
Member

This change is Reviewable

@gsnedders

Copy link
Copy Markdown
Member

Do we actually want to truly fork WebIDL2? The whitespace changes will make it harder to merge upstream changes.

@foolip

foolip commented Nov 1, 2017

Copy link
Copy Markdown
Member Author

I assumed that was a done deal given d772011, but I didn't look at the contents of the commit, turns out it's just adding .headers.

If we aren't forking, then how are we keeping it in sync?

@foolip

foolip commented Nov 1, 2017

Copy link
Copy Markdown
Member Author

I sent w3c/webidl2.js#99. Depending on how fast that goes and how we update webidl2.js, I'll either wait for that to trickle down or back out the changes from this PR.

@tobie

tobie commented Nov 1, 2017

Copy link
Copy Markdown
Contributor

Do we actually want to truly fork WebIDL2? The whitespace changes will make it harder to merge upstream changes.

Yeah that seems like a terrible idea that would prevent us from keeping idlharness in sync with the WebIDL spec.

@foolip

foolip commented Nov 1, 2017

Copy link
Copy Markdown
Member Author

Looks like the last upgrade was 960a3d2. @jgraham, what's the procedure?

marcoscaceres pushed a commit to w3c/webidl2.js that referenced this pull request Nov 1, 2017
See web-platform-tests/wpt#8027. With these
changes, most of wpt's lints would pass for webidl2.js.
@gsnedders

Copy link
Copy Markdown
Member

@foolip running git subtree with whatever option makes it squash it.

@gsnedders

Copy link
Copy Markdown
Member

I'm pretty sure it should just be git subtree pull --prefix=resources/webidl2 https://github.com/w3c/webidl2.js.git v8.1.0 except that doesn't work and I can't figure out why.

@gsnedders

Copy link
Copy Markdown
Member

@gsnedders

Copy link
Copy Markdown
Member

@foolip wait till #8063 lands, rebase on top of that.

@gsnedders

Copy link
Copy Markdown
Member

@foolip now #8063 has landed, want to try rebasing this?

@gsnedders gsnedders self-assigned this Nov 29, 2017
@gsnedders
gsnedders force-pushed the lint-resources branch 2 times, most recently from e935dfc to 2355f0c Compare November 29, 2017 13:45
@ghost

ghost commented Nov 29, 2017 •

Copy link
Copy Markdown

Build PASSED

Started: 2017-12-08 10:36:58
Finished: 2017-12-08 10:47:13

View more information about this build on:

@gsnedders

Copy link
Copy Markdown
Member

@foolip the README.md in resources/chromium says:

The files mojo_bindings.js and *.mojom.js are manually copied from the Chromium build process's generated files and should not be edited manually.

Should we be changing the generation, then, rather than here?

@foolip
foolip force-pushed the lint-resources branch 2 times, most recently from 3be590c to 0d24aaa Compare November 30, 2017 23:33
@foolip

foolip commented Nov 30, 2017

Copy link
Copy Markdown
Member Author

@gsnedders I've rebased and backed out the Chromium changes, should be good to go.

@foolip
foolip force-pushed the lint-resources branch 2 times, most recently from 042dfad to 2efeb0d Compare December 6, 2017 22:26
@foolip

foolip commented Dec 6, 2017

Copy link
Copy Markdown
Member Author

@gsnedders, I've fixed the new problems that had popped up, speedy merging of this once green would be good to not accumulate more.

@gsnedders

Copy link
Copy Markdown
Member

@foolip you've reverted some of my changes again, hence it failing CI again? (Specifically, resources/webidl2/test/* needs to be whitelisted as a git submodule, along with the other git submodules we whitelist)

@foolip

foolip commented Dec 7, 2017

Copy link
Copy Markdown
Member Author

I guess I forced push after a rebase.

@foolip

foolip commented Dec 7, 2017

Copy link
Copy Markdown
Member Author

But it did actually pass lint for me, which is weird.

@gsnedders

Copy link
Copy Markdown
Member

@foolip do you have all submodules initialised? also: --force-with-lease exists, which might be useful.

@foolip

foolip commented Dec 7, 2017

Copy link
Copy Markdown
Member Author

No, I probably never did initialize them. I'm aware of --force-with-lease, but only have it as the default on some machines.

@foolip

foolip commented Dec 8, 2017

Copy link
Copy Markdown
Member Author

@gsnedders fixed yet again, let's see if that works.

@foolip

foolip commented Dec 8, 2017

Copy link
Copy Markdown
Member Author

Yes it did.

@gsnedders
gsnedders merged commit 8ceb2df into master Dec 8, 2017
@gsnedders
gsnedders deleted the lint-resources branch December 8, 2017 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants