<commit_before># thirdparty-report-importer
A utility for convert a report of third party analyzers to Kiuwan format. Useful to import violations from Fortify or FxCop to Kiuwan.

# How to compile
Using maven you should write:
<pre>
mvn clean install
</pre>

# How to use
To convert a Fortify report (fortify.xml) to Kiuwan report (kiuwan_fortify.xml) run:
<pre>
java -cp thirdparty-report-importer-0.0.1-SNAPSHOT.jar com.kiuwan.importer.Main Fortify fortify.xml kiuwan_fortify.xml
</pre>
To convert a FxCop report (fxcop.xml) to Kiuwan report (kiuwan_fxcop.xml) run:
<pre>
java -cp thirdparty-report-importer-0.0.1-SNAPSHOT.jar com.kiuwan.importer.Main FxCop fxcop.xml kiuwan_fxcop.xml -base-folder=c:\dotnet_sources
</pre><commit_msg>Support for brakeman and rubocop<commit_after># thirdparty-report-importer
A utility for convert a report of third party analyzers to Kiuwan format. Useful to import violations from Fortify, FxCop, RuboCop or BrakeMan to Kiuwan.

# How to compile
Using maven you should write:
<pre>
mvn clean install
</pre>

# How to use
To convert a Fortify report (fortify.xml) to Kiuwan report (kiuwan_fortify.xml) run:
<pre>
java -cp thirdparty-report-importer-0.0.1-SNAPSHOT.jar com.kiuwan.importer.Main Fortify fortify.xml kiuwan_fortify.xml
</pre>
To convert a FxCop report (fxcop.xml) to Kiuwan report (kiuwan_fxcop.xml) run:
<pre>
java -cp thirdparty-report-importer-0.0.1-SNAPSHOT.jar com.kiuwan.importer.Main FxCop fxcop.xml kiuwan_fxcop.xml -base-folder=c:\dotnet_sources
</pre>
To convert a RuboCop report (rubocop.json) to Kiuwan report (kiuwan_rubocop.xml) run:
<pre>
java -cp thirdparty-report-importer-0.0.1-SNAPSHOT.jar com.kiuwan.importer.Main RuboCop rubocop.json kiuwan_rubocop.xml
</pre>
To convert a BrakeMan report (brakeman.json) to Kiuwan report (kiuwan_brakeman.xml) run:
<pre>
java -cp thirdparty-report-importer-0.0.1-SNAPSHOT.jar com.kiuwan.importer.Main BrakeMan brakeman.json kiuwan_brakeman.xml
</pre>
{'fraction_non_alphanumeric': 0.0992835209825998, 'fraction_numerical': 0.009211873080859774, 'mean_word_length': 4.942249240121581, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 20}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '33955', 'n_tokens_mistral': 750, 'n_tokens_neox': 753, 'n_words': 209}