Web service version of https://github.com/guykisel/inline-plz - lints your Pull Requests and comments inline on the diffs!
- Settings -> Webhooks -> Add Webhook
- Payload URL:
https://inlineplz.herokuapp.com/
- Let me select individual events: select Pull Request
If you use static analysis with your pull requests, you've probably gotten used to this workflow:
- Run static analysis locally, fix issues
- Push up a branch
- Open a PR
- Wait for the PR to pass in your CI tool
- Get a little red X on your PR because you forgot to run one of the static analysis tools
- Click on the little red X, crawl through console logs, and eventually find a cryptic message referencing a specific line in one of your files
- Go back to your code, look up the right file and line, and then go back to the error message because you already forgot what it was
This bot gives you the static analysis output directly inlined in your PR diffs so you can understand failures more efficiently.
- This repo contains a simple little Flask server that listens for Github webhooks
- When someone opens a pull request or pushes up some new commits, the repo's webhook POSTs to the Flask server
- The Flask server reads the Github PR data (branch, sha, etc.), clones the repo, and shells out to inline-plz
- inline-plz runs static analysis tools and uses the Github API to comment on the PR with any errors it finds
- Report bugs and feature requests!
- Issues for the webservice/bot should go in this repo (inline-plz-bot)
- Issues for the core functionality of inline-plz should go in https://github.com/guykisel/inline-plz
- Add support for more static analysis tools
- Add support for other code review tools besides just Github
- Add documentation
- Add unit tests
- Fix bugs