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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Codeq. Code quality as a service

23 点作者 ivoflipse超过 12 年前

9 条评论

drewcrawford超过 12 年前
This isn't static analysis.<p>Compare the output of a "real" static analysis tool that <i>finds logic bugs</i>[0]<p><a href="https://www.dropbox.com/s/md35ca9mjrny4o1/Screen%20Shot%202013-02-07%20at%208.35.40%20AM.png" rel="nofollow">https://www.dropbox.com/s/md35ca9mjrny4o1/Screen%20Shot%2020...</a><p>With their whitespace recommendations<p><a href="https://codeq.io/github/tianyang-li/rna-seq-len-est-0/master/play/blat_test_0/gen.py" rel="nofollow">https://codeq.io/github/tianyang-li/rna-seq-len-est-0/master...</a><p>Which seem to mostly be a wrapper around autopep8: <a href="https://github.com/hhatto/autopep8" rel="nofollow">https://github.com/hhatto/autopep8</a>.<p>Even Pylint / Pyflakes would be more "static analyzer" than this tool, although it's a stretch.<p>[0] In this case it trips an assert, so the bug can't "really" happen. Still, it's pretty impressive stuff.
评论 #5182532 未加载
评论 #5182583 未加载
delinka超过 12 年前
In the case of this tool, it seem that "code quality" means "formatted the way this tool's author believes is correct." I disagree with this definition.<p>When I think of code quality, I consider things like:<p><pre><code> - consistent memory management practices - consistent use of accessor methods vs. direct ivar access - descriptive method, function, and variable names - commentary to describe caveats and tricky functionality </code></pre> Those first two (as well as formatting concerns) can be handled by tools while the next two are very "human" and subjective.
评论 #5182258 未加载
评论 #5182197 未加载
matthavener超过 12 年前
'codeq' is also the name of the static analysis tool released late last year<p><a href="https://github.com/Datomic/codeq" rel="nofollow">https://github.com/Datomic/codeq</a>
MindTwister超过 12 年前
So, PEP8 as a service...<p><a href="http://www.python.org/dev/peps/pep-0008/" rel="nofollow">http://www.python.org/dev/peps/pep-0008/</a>
h2s超过 12 年前
Code Climate (<a href="https://codeclimate.com/" rel="nofollow">https://codeclimate.com/</a>) is a similar service for Ruby projects that I think does a really good job of this.
评论 #5182546 未加载
raverbashing超过 12 年前
Oh come on<p>Save yourself the money and run pep8 (better, forget about pep8 and run autopep8) and PyLint. Tune their output to your taste<p>Code style is important but it can be borderline pedantic sometimes.<p>Also, more than 80 chars fit in my screen<p>Not to mention that static code analysis can go so far
评论 #5182261 未加载
d0m超过 12 年前
I think this is a great service which I would use for various of my projects. I understand that now it's mostly a MVP but with a few additional features this could become very interesting.<p>- As others pointed out, the error/reporting needs to be better. Ideally it should gives insight that a normal pep8 parser wouldn't give. I.e. I don't mind <i>that much</i> for the whitespaces.. but if you help me avoid a real bug, that's a huge deal.
yuvadam超过 12 年前
Nice effort, but two lines in my shell give me the exact same result, and I can manipulate that to my needs.<p>Not everything has to be wrapped "as a service".
评论 #5183381 未加载
seivan超过 12 年前
This might be an off topic question, but is there a way to get ongoing static analysis on either Python or Ruby.<p>The same way CLANG works with OBJ-C in Xcode.