The following steps are required to try the "format" analyzer.
- Download
lookout-sdk
binary. - Start the Babelfish server with the v1.2.0 javascript driver installed (
docker exec -it bblfshd bblfshctl driver install javascript bblfsh/javascript-driver:v1.2.0
) - Install the Python dependencies
pip3 install -e .
- Write the configuration file, e.g.
config.yml
:
server: 0.0.0.0:9930
db: sqlite:////tmp/lookout.sqlite
fs: /tmp
- Run the analyzer
python3 -m lookout run lookout.style.format -c config.yml
- Clone a Git repository and change directory there.
- File a fake pull request
./lookout-sdk review
. It is possible to specify Git commit hashes, refer to the manual.
Your git repository should contain a sufficient number of JavaScript files so that it is possible to infer sane, statistically significant rules.