/style-analyzer

Style analyzer experiments

Primary LanguageJupyter NotebookGNU Affero General Public License v3.0AGPL-3.0

style-analyzer PyPI Build Status Docker Build Status codecov Read the Docs

Code style analyzer.

How to write and run an Analyzer using Python SDK

lookout/core/doc/getting_started.md

How to run the format analyzer

  1. Download lookout binary.
  2. Start a babelfish server with the v1.2.0 javascript driver installed (docker exec -it bblfshd bblfshctl driver install --update javascript bblfsh/javascript-driver:v1.2.0)
  3. Install the deps sudo pip3 install -e .
  4. Write the configuration file config.yml:
server: 0.0.0.0:2000
db: sqlite:////tmp/lookout.sqlite
fs: /tmp
  1. Run the analyzer python3 -m lookout run lookout.style.format -c config.yml
  2. File a fake pull request ./lookout review -v ipv4://localhost:2000

Implemented analyzers

API Documentation

API documentation is available on Read The Docs.

License

AGPL-3.0, see LICENSE.md.