Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.06 KB

developer.md

File metadata and controls

21 lines (16 loc) · 1.06 KB

Running style-analyzer in developer mode

The following steps are required to try the "format" analyzer.

  1. Download lookout-sdk binary.
  2. 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)
  3. Install the Python dependencies pip3 install -e .
  4. Write the configuration file, e.g. config.yml:
server: 0.0.0.0:9930
db: sqlite:////tmp/lookout.sqlite
fs: /tmp
  1. Run the analyzer python3 -m lookout run lookout.style.format -c config.yml
  2. Clone a Git repository and change directory there.
  3. 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.