planemo
planemo copied to clipboard
planemo lint report (machine-readable)
I was looking into ways of integrating the rich planemo lint
results into the Galaxy Tools VSCode extension in a similar way as the planemo tests.
I found in the planemo lint --help
an option to generate a xUnit report with --report_xunit
:
Usage: planemo lint [OPTIONS] TOOL_PATH
Check for common errors and best practices.
Options:
--report_level [all|warn|error]
--report_xunit PATH Output an XUnit report, useful for CI
testing
--fail_level [warn|error]
...
I tried to use the option but It seems the report file is not generated with the lint command. Anybody else experiencing this?
In case it is not working or there is an error in the --help
documentation, I will be happy to implement a new option planemo lint --report_json
or at least try to :)
It looks like it was never implemented: https://github.com/galaxyproject/planemo/pull/349
In case it is not working or there is an error in the --help documentation, I will be happy to implement a new option planemo lint --report_json or at least try to :)
:+1:
Thanks @simonbray for checking it out!
I will try to add this --report_json
option. Hope it is ok to replace the --report_xunit
with a simpler JSON report tailored specifically for all the linting results.
I mean - xunit results would be really cool and work well with other things. But I'm happy to merge a JSON report also.