Automatically detect code smells in your pull requests.
-
Fork this repo.
-
Deploy to wherever you want.
-
Get a GitHub access_token.
-
Set your GitHub
access_token
toENV['access_token']
. -
Set a webhook on which ever repo(s) you want to detect code smells on. You will need to select
Let me select individual events.
and thenPull Request
from the options. Set the Payload URL to be<MY_URL>/pull_requests
. -
When a new pull request is created, GitHub will send the details to your forked application, the application will then run reek on the changed files and comment directly on your pull request with any code smells. See example here
Obviously this heavily relies on reek
- Improve the PR list style and add more information like the timestamp and smells.
- Integrate more than
reek
? (rubocop seems like a sensible next step)