Closed laanwj closed 8 years ago
Updated:
SimpleReport
checks. Instead of having one huge function that does all checks, have a SimpleReportCheck
interface which is implemented by every check. This is more extensible - plugins can call RegisterSimpleReportCheck
to register their own checks on top of the standard ones.Oh uh. Apparently I broke Travis in the process. I don't understand why: both the tests and gofmt pass locally. It appears some problem with fetching dependencies.
After this is complete (and passes Travis) I'll squash the commits into one, at least if you prefer it like that.
This looks great! I think the reason Travis fails is because the actual FormatParagraph function doesn't seem to be in the commit - unless I've missed something.
Oh, that'd explain a few things :) Re-trying with actually adding that file.
Edit: that did it
Split generation of simple report into two passes.
Add command-line option
-jsonSimpleReport
to specify generation of a JSON simple report.-jsonReport
output will also contain thesimpleReport
as one of the fields (I think this was the intention in #35).Example output:
Text output remains approximately the same: