TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hound: A service that comments on Ruby style violations in GitHub pull requests

69 pointsby wymyabout 11 years ago

12 comments

VeejayRampayabout 11 years ago
Can someone shed some light on the reason why we&#x27;re still bothering with &quot;line is too long&quot; in 2014?<p>I mean I&#x27;m not talking 300 characters-long lines here that&#x27;s ridiculous, but the idea that a line with 90 characters is &quot;too long&quot; because some arbitrary limit in the width of certain terminal emulators back in the days was fixed at whatever number of columns seems really backwards.<p>So yeah, I&#x27;m open too any sane explanation of the why that is actually good practice beyond what I perceive as severe cargo culting.
评论 #7562387 未加载
评论 #7562269 未加载
评论 #7562214 未加载
评论 #7562376 未加载
评论 #7562391 未加载
评论 #7562203 未加载
评论 #7562309 未加载
jared314about 11 years ago
I have always liked the idea of these bots roaming github, looking for bugs to fix and code that could be improved. But, it almost always ends up annoying somehow. Either the change is a false positive, the bot doesn&#x27;t understand the project structure, or the bot just spams changes. Software development has too many unwritten rules and social interactions for a bot to just send PRs and comments.<p>Perhaps another type of communication, other than issues, PRs, and comments, is needed just for bots. I would tolerate my projects being scanned, if I could separate the human and bot communication streams. (And, block bots when they don&#x27;t work as expected.)
评论 #7562515 未加载
rubiquityabout 11 years ago
I love this. On just about any team I have worked on, whenever a fresh PR comes in everyone goes through it picking out style guide violations. It&#x27;s tedious, annoying and sometimes arbitrary if the team doesn&#x27;t have a solid style guide in place. Hound will let us get right to reviewing what matters: the code itself.<p>Up next: I would love a Unix utility I could filter my uncommitted diff through and get style guide violations before I even upload to GitHub. Use git for everything, baby.
评论 #7561921 未加载
评论 #7564324 未加载
mikesilvisabout 11 years ago
<a href="https://github.com/bbatsov/rubocop" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bbatsov&#x2F;rubocop</a> FTW. Integrate it into your test suite and you can see your mistakes before you push up a change for your team to see.
评论 #7562558 未加载
评论 #7561690 未加载
spajusabout 11 years ago
Take a look at <a href="https://github.com/mmozuras/pronto" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mmozuras&#x2F;pronto</a> - does the same, has many adapters.
评论 #7561509 未加载
caleb_thompsonabout 11 years ago
One thing I&#x27;ve liked with hound is that when it comes up with what I&#x27;d consider a &quot;false positive,&quot; such as a line with a url that can&#x27;t be split, I can just reply inline to explain why that couldn&#x27;t change. This pull has a lot of examples of that: <a href="https://github.com/thoughtbot/griddler/pull/119" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thoughtbot&#x2F;griddler&#x2F;pull&#x2F;119</a>
评论 #7561828 未加载
100kabout 11 years ago
The marketing site needs some work. There&#x27;s no details about pricing that I can find and no information about configuring your own rules (I had to read the source code to see if that was possible). I am not going to sign up with GitHub to see either of those things, they need to be public.
评论 #7562995 未加载
guptaneilabout 11 years ago
This is really cool. Sure, similar tools have existed for a while, but Hound looks far simpler to setup and use than previous tools.<p>However, it would be nice to have this optionally run on every commit rather than only on pull requests. For my own personal projects, I obviously don&#x27;t submit pull requests to myself, but I would like to have Hound double-check my code for me.
评论 #7561670 未加载
paultannenbaumabout 11 years ago
This is great. Is it possible to use this as a rake task? I think it would be better to have team members run this locally just like they would run a test suite, make sure everything is up to par, and then open a PR. This would keep the communication stream in the PR nice and clean, focused only on code implementation.
评论 #7562403 未加载
jeez444about 11 years ago
This is a great product. I was working on a product when a new developer joined and started writing Ruby like he was writing in PHP, ignoring all of the programming language&#x27;s idioms. What was worse was that with every commit where his code was &quot;cleaned up&quot;, he&#x27;d put them back in!
评论 #7566383 未加载
l_ew_isabout 11 years ago
Not sure I&#x27;d want to give this site Github access: <a href="http://filippo.io/Heartbleed/#houndci.com" rel="nofollow">http:&#x2F;&#x2F;filippo.io&#x2F;Heartbleed&#x2F;#houndci.com</a>
评论 #7562237 未加载
评论 #7562218 未加载
strzalekabout 11 years ago
I hate those github bots. Just use rubocop and run it in your CI.
评论 #7566395 未加载