Bento is a free command-line tool that finds the bugs that matter to you
Bento finds the bugs that matter to you.
Bento automatically tailors linters and static analysis with sane defaults on a per-project basis, letting you focus on writing code rather than configuring tools. Bento is free, fully-featured, and you can run Bento on as many projects as you like.
Bento is supported on macOS Mojave (10.14) and Ubuntu 18.04+, and requires Python version 3.6 or later and pip3. For JS projects, bento requires Node.js with version recommended in here.
- Node.js 8 (8.10.0 and above)
- Node.js 10 (10.13.0 and above)
- Anything above Node.js 11.10.1
pip3 install bento-cli
The workflow for Bento is:
- Initialize Bento
- Run Bento checks on your source code
- Fix issues or archive unnecessary warning and errors
- Disable undesired checks
- Add Bento to git pre-commit hooks
- Add Bento to the CI pipeline (e.g., CircleCI)
Initialize Bento for a project:
To set up for a project, navigate to the root of your project (e.g., where your
.git directory is located).
This will install and configure Bento for your project.
Add this to your
Analyze your source code
To trigger Bento to analyze your project, run:
Archive outstanding issues
archive command whitelists outstanding issues to fix later. This lets you continue coding with a clean slate without having to address all your tech debt as soon as you adopt a new tool. New issues introduced from this point forward will be reported by Bento until the next time you run the
and commit the resulting
Disable and enable individual checks
Enable/disable a specific check by running:
bento enable [OPTIONS] TOOL CHECK
bento disable [OPTIONS] TOOL CHECK
TOOLrefers to the tool that includes the check, for example,
CHECKrefers to the label for the check you want to enable, for example
bento enable r2c.eslint no-console
You can find the tool and check names in the output of
bento check. Bento currently supports the following tools:
If there are tools you'd like us to add, please let us know by creating an issue on GitHub.
Install Bento as a pre-commit hook
Bento can install itself as a pre-commit hook, so it runs before each commit and blocks on failures.
To install bento as a pre-commit hook, simply run:
Here’s a short preview of Bento in action:
Join the Bento channel in our community Slack to receive and give support, talk with other users, and share things about Bento. The r2c team is there and ready to help!
Terms of service and privacy
Please refer to the terms and privacy document.
Copyright (c) r2c.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size bento_cli-0.1.1-py3-none-any.whl (38.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size bento-cli-0.1.1.tar.gz (31.4 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for bento_cli-0.1.1-py3-none-any.whl