NOTE: This project will most likely not be continued. It was started when sonarqube didn't allow for import of the SARIF format. That has now been fixed by SonarQuebe, and so the initial motivation is gone. And there are other SARIF-parsers out there to use. However it was a fun practice in building a CLI and generatiing a native exe from that with graalvm, so I might continue it in the future. The SarifParser and the cli graalvm worked quite ok when having a look at it. So for the pipelines and practice of building a PicoCLI generated executable, i'm leaving this as is. Hmm, make I could make a DEV-article, there are some insights that would be usable in general.
Anyway, don't expect me to fix anything regarding this project, is here for reference only.
sariftool
is a CLI tool for converting the standard SARIF format to other formats (currently only Sonar Custom Format). Having a generalized name means it might do more in the future.;)
- Why?
- Installation
- Usage
- Git Integration
- What can I back up?
- Configuration
- Output Structure
- Reinstalling Dotfiles
- Want to contribute?
I needed a tool that would import SARIF output from Mega-linter to SonarQuebe.
TO-DO
To start the interactive program, simply run $ sariftool
.
Usage: sarifconvert [-hV] [-i=<inputDir>] [-o=<outputDir>] [-t=<targetFormat>]
Convert SARIF format to other formats
-h, --help Show this help message and exit.
-i, --inputdir=<inputDir>
/path/to/dir/with/sarif/file(s)/
-o, --outputdir=<outputDir>
/path/to/dir/for/output/
-t, --targetformat=<targetFormat>
Only sonar atm (default)
-V, --version Print version information and exit.
Check out docs/CONTRIBUTING.md
.
This project is released under the
Most of the parser implementation is lifted from: