Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to get report in JSON format? #45

Open
prakash-26790 opened this issue Nov 25, 2017 · 1 comment
Open

Possible to get report in JSON format? #45

prakash-26790 opened this issue Nov 25, 2017 · 1 comment

Comments

@prakash-26790
Copy link

I just want to extract the incompatibilities in JSON format.
So is there any flag available which I can give while running the compliance checker tool?

@lvc
Copy link
Owner

lvc commented Nov 28, 2017

Hi,

There is no such flag yet.

But you have two options here:

  1. Read the first line of the HTML report. It's structured data like this and can be quickly read and parsed:

     kind:binary;verdict:incompatible;affected:6.7;added:111;removed:0;type_problems_high:14;type_problems_medium:1;type_problems_low:6;method_problems_high:0;method_problems_medium:0;method_problems_low:0;checked_methods:1632;checked_types:184;tool_version:2.2
    
  1. Use https://github.com/lvc/japi-tracker for your project. It generates JSON reports like this: https://github.com/lvc/api-reports-4j/blob/master/report/accumulo.json

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants