TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Google releases its own Javascript Lint tool

115 点作者 edd超过 14 年前

6 条评论

stevelosh超过 14 年前
Here's a couple of lines to let you use this with :make (on a single file) and the QuickFix window in Vim:<p><pre><code> au BufNewFile,BufRead *.js set makeprg=gjslint\ % au BufNewFile,BufRead *.js set errorformat=%-P-----\ FILE\ \ :\ \ %f\ -----,Line\ %l\\,\ E:%n:\ %m,%-Q,%-GFound\ %s,%-GSome\ %s,%-Gfixjsstyle%s,%-Gscript\ can\ %s,%-G </code></pre> If any experts in Vim's makeprg/errorformat want to clean this up, that would be awesome. I just hacked it together and it seems to work well enough.
maw超过 14 年前
The installation instructions tell you to run "easy_install <a href="http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz" rel="nofollow">http://closure-linter.googlecode.com/files/closure_linter-la...</a>. All well and good, but install instructions that don't reference specific version numbers freak me out. I might have gotten a little too much reproducibility religion, with all that that entails, but it seems better than being so cavalier when setting up environments.
评论 #1655507 未加载
thechangelog超过 14 年前
Does anyone know how this would differ from jslint? I couldn't find anything immediately obvious.
评论 #1654526 未加载
评论 #1655629 未加载
kilowatt超过 14 年前
I was hoping I could run this realtime in vim, but it appears too slow on a 1000 line JS file.
kilian超过 14 年前
Ouch, they shipped with a broken fixjsstyle command: <a href="http://groups.google.com/group/closure-linter-discuss/browse_thread/thread/30fa86792d11b208" rel="nofollow">http://groups.google.com/group/closure-linter-discuss/browse...</a> Luckily it didn't break my jsfile, but that's kind of clumsy.
评论 #1655824 未加载
eclark超过 14 年前
It fails on file I have thrown at it with some complexity other than jquery.