Right now I need to parse the lookout-tool logs to get Analyzer comments and rely on internal implementation logic (https://github.com/src-d/lookout/blob/master/server/server.go#L559).
For example something like
go run cmd/lookout-sdk/*.go review --log-format=json 2>&1 | jq 'select(.msg == "file comment")' can work.
I think that comments can be interpreted as lookout-tool review output and passed to stdout.
It can be in the same log format (JSON/not JSON).
So in ideal case, I just want to run
go run cmd/lookout-sdk/*.go review --log-format=json > comments.json and get comment per line in JSON format.
Right now I need to parse the lookout-tool logs to get Analyzer comments and rely on internal implementation logic (https://github.com/src-d/lookout/blob/master/server/server.go#L559).
For example something like
go run cmd/lookout-sdk/*.go review --log-format=json 2>&1 | jq 'select(.msg == "file comment")'can work.I think that comments can be interpreted as
lookout-tool reviewoutput and passed to stdout.It can be in the same log format (JSON/not JSON).
So in ideal case, I just want to run
go run cmd/lookout-sdk/*.go review --log-format=json > comments.jsonand get comment per line in JSON format.