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

Treat relative paths in Cobertura reports as relative to the project … #613

Merged
merged 3 commits into from
Aug 30, 2015

Conversation

abbeyj
Copy link

@abbeyj abbeyj commented Aug 21, 2015

…base directory as opposed to the current directory.

This is intended to address #426. That issue is currently marked closed but it is not fixed I've requested that it be reopened.

…base directory

as opposed to the current directory.
@@ -37,6 +37,14 @@
* {@inheritDoc}
*/
public class CoberturaParser implements CoverageParser {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abbeyj looks like a specific solution for CoberturaParser. Could you move this baseDir to CoverageParser to make it more generic please.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CoverageParser is an interface so I can't move it there. Do you want me to create a base class and put baseDir there? If so, do you have a preference for a name?

@guwirth
Copy link
Collaborator

guwirth commented Aug 28, 2015

@abbeyj Sorry for the late answer. Would do it like here https://github.com/wenns/sonar-cxx/blob/master/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/utils/CxxReportSensor.java

New class CxxCoverageParser which implements CoverageParser. Current location of your class in coverage folder is ok.

@guwirth
Copy link
Collaborator

guwirth commented Aug 30, 2015

Thx

@guwirth guwirth added this to the M 0.9.4 milestone Aug 30, 2015
@guwirth guwirth added bug and removed enhancement labels Aug 30, 2015
guwirth added a commit that referenced this pull request Aug 30, 2015
Treat relative paths in Cobertura reports as relative to the project …
@guwirth guwirth merged commit 1c716de into SonarOpenCommunity:master Aug 30, 2015
@abbeyj abbeyj deleted the cobertura-relative-paths branch August 31, 2015 18:40
@guwirth guwirth mentioned this pull request Oct 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants