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 `check_name` to `rule`

remal opened this issue · comments

CodeClimate class has check_name field that is supposed to handle rule name:

However, CodeClimateParser doesn't handle check_name field:

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 check_name to rule mapping?

fixed, open issue again if any problems.