Convert text to checkstyle format.
For some command line tools. E.g. saddler, reviewdog
See text2checkstyle for the programmatic API.
$ echo -n 'example' | text2checkstyle
<?xml version="1.0"?><checkstyle><file name="path/to/file"><error column="0" line="0" message="example" severity="info" source="TextToCheckstyle"/></file></checkstyle>
Download from Latest release for your own environment.
or
$ cargo install text2checkstyle_cli
text2checkstyle_cli
cli for text to checkstyle.
USAGE:
text2checkstyle [OPTIONS] [FILE]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--column <COLUMN> [default: 0]
--line <LINE> [default: 0]
--name <NAME> [default: path/to/file]
--severity <SEVERITY> [default: info]
--source <SOURCE> [default: TextToCheckstyle]
ARGS:
<FILE>
MIT/Apache-2.0 © sanemat