Skip to content

Pass comments generated by lookout-tool review call to stdout #601

@zurk

Description

@zurk

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions