tomasbjerre / violations-lib

Java library for parsing report files from static code analysis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`CodeClimateParser` should map `engine_name` to `reporter`

remal opened this issue · comments

CodeClimate class has engine_name field that is supposed to handle a tool name that generated the violation:

However, CodeClimateParser doesn't handle engine_name field at all and just sets CODECLIMATE string as a tool name:

violationBuilder() //
.setFile(issue.getLocation().getPath()) //
.setCategory(issue.getCategories().get(0).getName()) //
.setMessage(issue.getDescription()) //
.setParser(CODECLIMATE) //
.setReporter(CODECLIMATE.name()) //
.setSeverity(this.toSeverity(issue.getSeverity())) //
.setStartLine(begin) //
.build());

Could you please add engine_name to reporter mapping?

fixed, open issue again if any problems.