[](https://travis-ci.com/src-d/lookout-sonarcheck-analyzer) lookout analyzer: sonarcheck

March 28, 2019 ยท View on GitHub

A lookout analyzer implementation that uses bblfsh UAST and sonar-checks.

Disclaimer: this is not an official product, it only serves the purpose of testing lookout.

Example of utilization

Install lookout-sonarcheck dependencies running:

$ pip3 install -r requirements.txt

Run lookout-sonarcheck analyzer

$ python3 sonarcheck_analyzer.py

With lookout-sdk binary from the latest release of SDK, run:


$ lookout-sdk review --log-level=debug \
    --from c99dcdff172f1cb5505603a45d054998cb4dd606 \
    --to 3a9d78bdd1139c929903885ecb8f811931b8aa70

Configuration

VariableDefaultDescription
SONARCHECK_HOST0.0.0.0IP address to bind the gRPC serve
SONARCHECK_PORT9930Port to bind the gRPC server
SONARCHECK_DATA_SERVICE_URLipv4://localhost:10301gRPC URL of the Data service
SONARCHECK_LOG_LEVELinfoLogging level (info, debug, warning or error)

Development

Release

Main release artifact is a Docker image, so

  • make docker-push

License

AGPLv3