{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/106","labels_url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/106/comments","events_url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/106/events","html_url":"https://github.com/karma-runner/karma-coverage/pull/106","id":45252879,"number":106,"title":"Allow to use a custom basePath in coverage reports + minor fixes","user":{"login":"NicolaF","id":147832,"avatar_url":"https://avatars.githubusercontent.com/u/147832?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolaF","html_url":"https://github.com/NicolaF","followers_url":"https://api.github.com/users/NicolaF/followers","following_url":"https://api.github.com/users/NicolaF/following{/other_user}","gists_url":"https://api.github.com/users/NicolaF/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolaF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolaF/subscriptions","organizations_url":"https://api.github.com/users/NicolaF/orgs","repos_url":"https://api.github.com/users/NicolaF/repos","events_url":"https://api.github.com/users/NicolaF/events{/privacy}","received_events_url":"https://api.github.com/users/NicolaF/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/karma-runner/karma-coverage/labels/needs:%20feedback-from-author","name":"needs: feedback-from-author","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-08T14:48:16Z","updated_at":"2015-08-06T06:47:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/karma-runner/karma-coverage/pulls/106","html_url":"https://github.com/karma-runner/karma-coverage/pull/106","diff_url":"https://github.com/karma-runner/karma-coverage/pull/106.diff","patch_url":"https://github.com/karma-runner/karma-coverage/pull/106.patch"},"body":" * add an optionnal configuration key \"coverageReporter.reportBasePath\" to specify the base path used in reports. Defaults to karma's basePath. Use case: maven + SonarQube integration:\r\n   * js sources are symlinked in a temporary directory and built there to avoid source tree pollution\r\n   * paths in lcov reports are relative to this temporary directory\r\n   * SonarQube expects paths in report to be relative to ${project.basedir}\r\n   * when setting coverageReporter.reportBasePath to ${project.basedir}, SonarQube is able to find files and to follow symlinks up to the original sources.\r\n\r\n * preprocessor: use path.resolve instead of string replace. Should be safer and cope well with gory symlinks. Update tests accordingly\r\n * reporter: relative paths do not necessarily start with ./. Check for leading / instead."},"comment":{"url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/comments/128269785","html_url":"https://github.com/karma-runner/karma-coverage/pull/106#issuecomment-128269785","issue_url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/106","id":128269785,"user":{"login":"Dignifiedquire","id":790842,"avatar_url":"https://avatars.githubusercontent.com/u/790842?v=3","gravatar_id":"","url":"https://api.github.com/users/Dignifiedquire","html_url":"https://github.com/Dignifiedquire","followers_url":"https://api.github.com/users/Dignifiedquire/followers","following_url":"https://api.github.com/users/Dignifiedquire/following{/other_user}","gists_url":"https://api.github.com/users/Dignifiedquire/gists{/gist_id}","starred_url":"https://api.github.com/users/Dignifiedquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dignifiedquire/subscriptions","organizations_url":"https://api.github.com/users/Dignifiedquire/orgs","repos_url":"https://api.github.com/users/Dignifiedquire/repos","events_url":"https://api.github.com/users/Dignifiedquire/events{/privacy}","received_events_url":"https://api.github.com/users/Dignifiedquire/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T06:47:52Z","updated_at":"2015-08-06T06:47:52Z","body":"Closing due to inactivity "}}