Closed
Bug 1131503
Opened 11 years ago
Closed 10 years ago
Running csslint.js on node.js
Categories
(Firefox OS Graveyard :: Gaia::Build, defect, P2)
Firefox OS Graveyard
Gaia::Build
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rickychien, Assigned: rickychien)
References
Details
Attachments
(1 file)
No description provided.
Comment 1•10 years ago
|
||
I guess it will work just fine. Any suggestion to verify it?
Flags: needinfo?(rchien)
| Assignee | ||
Comment 2•10 years ago
|
||
Hey Fred, thank you for helping this.
However, we're not going to refactoring csslint at earlier stage since csslint is unnecessary in main building path. Developer invokes it when they try to invoke "make lint" or it will be invoked by CI.
In the other hand, csslint leverages XPCOM's DOMUtils APIs it's probably unsupported in third-party NPM package.
Flags: needinfo?(rchien)
| Assignee | ||
Comment 3•10 years ago
|
||
You could find out what's NPM package we can use in order to replace our XPCOM linter and also provide new CSS features we need. (Or probably we can try to patch for it)
| Assignee | ||
Updated•10 years ago
|
Summary: Running csslint.js and csslinter.js on node.js → Running csslint.js on node.js
| Assignee | ||
Updated•10 years ago
|
Priority: -- → P2
Comment 4•10 years ago
|
||
CSS linter is also invoked by the pre-commit hook for the gaia repo.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → rchien
Status: NEW → ASSIGNED
Comment 5•10 years ago
|
||
| Assignee | ||
Comment 6•10 years ago
|
||
Last one piece of this big refactoring work. After landing this patch, we are able to run on pure node environment with XPCShell runtime.
It's time to deprecate b2g_sdk from Gaia and set node runtime by default once we figure out the root cause of performance issue on node.
| Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8721657 [details] [review]
[gaia] rickychien:csslint-to-node > mozilla-b2g:master
Interesting thing is that our CSSLint was broken for a while but without any orange sign on treeherder. So I rewrote whole csslint.js and modify xfail.list to make things easy. (We don't count and print errors and warnings messages anymore)
xfail.list will be a simple blacklist from now. I've verified that submit a new PR with an error-prone CSS file will make CSSLint become orange on treeherder. It means... yeah CSSLint is back finally.
Attachment #8721657 -
Flags: review?(scwwu)
Comment 8•10 years ago
|
||
Comment on attachment 8721657 [details] [review]
[gaia] rickychien:csslint-to-node > mozilla-b2g:master
Looks good. Thanks! r+
Attachment #8721657 -
Flags: review?(scwwu) → review+
| Assignee | ||
Comment 9•10 years ago
|
||
Thank you Scott!
Landed in master:
https://github.com/mozilla-b2g/gaia/commit/99eb3b3f7a07c7152f63fe2c1da01b5092efd90c
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•