src-d / lookout-flake8-analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status lookout analyzer: sonarcheck

A lookout analyzer implementation that uses the flake8 meta linter for Python code.

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

Example of utilization

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

$ python3 flake8_analyzer.py

$ lookout-sdk review -v ipv4://localhost:2001 \
    --from c99dcdff172f1cb5505603a45d054998cb4dd606 \
    --to 3a9d78bdd1139c929903885ecb8f811931b8aa70

Configuration

Variable Default Description
FLAKE8_HOST 0.0.0.0 IP address to bind the gRPC serve
FLAKE8_PORT 2002 Port to bind the gRPC server
FLAKE8_DATA_SERVICE_URL ipv4://localhost:10301 gRPC URL of the Data service
FLAKE8_LOG_LEVEL info Logging level (info, debug, warning or error)

Development

Release

Main release artifact is a Docker image, so

  • make docker-push

License

AGPLv3

About

License:GNU Affero General Public License v3.0


Languages

Language:Python 66.6%Language:Shell 20.8%Language:Makefile 6.4%Language:Dockerfile 6.1%