Please refer to lookout-sdk docs to see how to locally test an analyzer without accessing GitHub.
language-analyzer
is an example of an analyzer that detects the language and number of functions for every modified file. It has been implemented with Golang and with Python to serve as a canonical example of how to program your own analyzer.
You can find its code in lookout-sdk/examples. You can also run it from sources doing as it follows:
You can execute language-analyzer.go running from the lookout-sdk directory:
$ go get -u examples
$ go run examples/language-analyzer.go
You can execute language-analyzer.py running from the lookout-sdk directory:
$ pip install lookout-sdk
$ python3 examples/language-analyzer.py
dummy
is a simple analyzer that:
- warns if the modified line is longuer than a limit, and
- informs about the number of lines in which the changed file was increased.
It is used for internal testing purposes, but you can also use it when trying source{d} Lookout.
You can download it from source{d} Lookout releases page and then run it:
$ dummy serve