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)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rickychien, Assigned: rickychien)

References

Details

Attachments

(1 file)

No description provided.
I guess it will work just fine. Any suggestion to verify it?
Flags: needinfo?(rchien)
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)
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)
Summary: Running csslint.js and csslinter.js on node.js → Running csslint.js on node.js
Priority: -- → P2
CSS linter is also invoked by the pre-commit hook for the gaia repo.
Assignee: nobody → rchien
Status: NEW → ASSIGNED
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.
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 on attachment 8721657 [details] [review] [gaia] rickychien:csslint-to-node > mozilla-b2g:master Looks good. Thanks! r+
Attachment #8721657 - Flags: review?(scwwu) → review+
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.

Attachment

General

Created:
Updated:
Size: