Instead of using a service like this one (or Hound) that comments directly on pull requests, we chose to integrate the same tools in our build process with Phare ( https://github.com/mirego/phare ), a command-line tool we built which runs Rubocop, JSHint, JSCS, etc. and exits with a global status. If the code has coding style violations, the build breaks. Exactly like it would if we pushed a failing test. Personally,…
I guess the advantage of Linthub over Phare is that it can run on pull requests made by external contributors.
Linthub: Static code analysis for GitHub pull requests
11–20 of 35 posts
Re: Linthub: Static code analysis for GitHub pull requests
#12Instead of using a service like this one (or Hound) that comments directly on pull requests, we chose to integrate the same tools in our build process with Phare ( https://github.com/mirego/phare ), a command-line tool we built which runs Rubocop, JSHint, JSCS, etc. and exits with a global status. If the code has coding style violations, the build breaks. Exactly like it would if we pushed a failing test. Personally,…
I guess the advantage of Linthub over Phare is that it can run on pull requests made by external contributors.
Re: Linthub: Static code analysis for GitHub pull requests
#13Earlier quoted context omitted.
I guess the advantage of Linthub over Phare is that it can run on pull requests made by external contributors.
Actually, it does in a certain way. Travis runs builds (tests + Phare) for all pull requests (eg. https://travis-ci.org/mirego/encore/pull_requests ) so we know if pull requests made by external contributors "break the build".
Re: Linthub: Static code analysis for GitHub pull requests
#14Earlier quoted context omitted.
Actually, it does in a certain way. Travis runs builds (tests + Phare) for all pull requests (eg. https://travis-ci.org/mirego/encore/pull_requests ) so we know if pull requests made by external contributors "break the build".
Yes, true, but only if it breaks. This enforces common code quality issues, so it will run side-to-side with travis.
In Python this usually means running flake8 as a Travis job.
Re: Linthub: Static code analysis for GitHub pull requests
#15Re: Linthub: Static code analysis for GitHub pull requests
#16Does github not have granular enough permissions to allo commenting on pull requests without granting write access to a repo?
Re: Linthub: Static code analysis for GitHub pull requests
#17This looks pretty awesome and will just get better as more languages get supported. But, it comments on commits, not on the diff in the PR. I think commeting on the diff looks nicer (you see code snippet with the comment) and in my opinion it's also easyer to find all the comments that way. Instead of clicking the commit hash on the commen each time.
Thanks! Will check and handle this.
Re: Linthub: Static code analysis for GitHub pull requests
#18Re: Linthub: Static code analysis for GitHub pull requests
#19Earlier quoted context omitted.
I guess the advantage of Linthub over Phare is that it can run on pull requests made by external contributors.
This is exactly why we've develop this. To enforce code quality to pull requests and save the repository owners time.
1: https://github.com/blog/1935-see-results-from-all-pull-reque...
Re: Linthub: Static code analysis for GitHub pull requests
#20Similar services: https://houndci.com/ http://scrutinizer-ci.com/ http://landscape.io/ http://codeclimate.com/