{"action":"created","issue":{"url":"https://api.github.com/repos/Backelite/sonar-swift/issues/61","repository_url":"https://api.github.com/repos/Backelite/sonar-swift","labels_url":"https://api.github.com/repos/Backelite/sonar-swift/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/Backelite/sonar-swift/issues/61/comments","events_url":"https://api.github.com/repos/Backelite/sonar-swift/issues/61/events","html_url":"https://github.com/Backelite/sonar-swift/issues/61","id":196214716,"number":61,"title":"Metric 'test_data' should not be computed by a Sensor","user":{"login":"giacgbj","id":1658549,"avatar_url":"https://avatars.githubusercontent.com/u/1658549?v=3","gravatar_id":"","url":"https://api.github.com/users/giacgbj","html_url":"https://github.com/giacgbj","followers_url":"https://api.github.com/users/giacgbj/followers","following_url":"https://api.github.com/users/giacgbj/following{/other_user}","gists_url":"https://api.github.com/users/giacgbj/gists{/gist_id}","starred_url":"https://api.github.com/users/giacgbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giacgbj/subscriptions","organizations_url":"https://api.github.com/users/giacgbj/orgs","repos_url":"https://api.github.com/users/giacgbj/repos","events_url":"https://api.github.com/users/giacgbj/events{/privacy}","received_events_url":"https://api.github.com/users/giacgbj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-17T10:19:22Z","updated_at":"2016-12-20T20:28:54Z","closed_at":null,"body":"Since SonarQube 6.2, the following blocking error occurs:\r\n\r\n```\r\n[11:16:10]: ▸ ERROR: Error during SonarQube Scanner execution\r\n[11:16:10]: ▸ org.sonar.api.utils.XmlParserException: Cannot parse surefire reports\r\n[11:16:10]: ▸ at org.sonar.plugins.swift.tests.SwiftSurefireParser.parseFiles(SwiftSurefireParser.java:142)\r\n[11:16:10]: ▸ at org.sonar.plugins.swift.tests.SwiftSurefireParser.collect(SwiftSurefireParser.java:74)\r\n[11:16:10]: ▸ at org.sonar.plugins.swift.tests.SwiftSurefireSensor.collect(SwiftSurefireSensor.java:87)\r\n[11:16:10]: ▸ at org.sonar.plugins.swift.tests.SwiftSurefireSensor.analyse(SwiftSurefireSensor.java:81)\r\n[11:16:10]: ▸ at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:57)\r\n[11:16:10]: ▸ at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:49)\r\n[11:16:10]: ▸ at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)\r\n[11:16:10]: ▸ at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182)\r\n[11:16:10]: ▸ at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)\r\n[11:16:10]: ▸ at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)\r\n[11:16:10]: ▸ at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247)\r\n[11:16:10]: ▸ at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242)\r\n[11:16:10]: ▸ at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232)\r\n[11:16:10]: ▸ at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)\r\n[11:16:10]: ▸ at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)\r\n[11:16:10]: ▸ at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)\r\n[11:16:10]: ▸ at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)\r\n[11:16:10]: ▸ at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)\r\n[11:16:10]: ▸ at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)\r\n[11:16:10]: ▸ at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)\r\n[11:16:10]: ▸ at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)\r\n[11:16:10]: ▸ at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)\r\n[11:16:10]: ▸ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n[11:16:10]: ▸ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n[11:16:10]: ▸ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n[11:16:10]: ▸ at java.lang.reflect.Method.invoke(Method.java:498)\r\n[11:16:10]: ▸ at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)\r\n[11:16:10]: ▸ at com.sun.proxy.$Proxy0.execute(Unknown Source)\r\n[11:16:10]: ▸ at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)\r\n[11:16:10]: ▸ at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)\r\n[11:16:10]: ▸ at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)\r\n[11:16:10]: ▸ at org.sonarsource.scanner.cli.Main.execute(Main.java:74)\r\n[11:16:10]: ▸ at org.sonarsource.scanner.cli.Main.main(Main.java:61)\r\n[11:16:10]: ▸ Caused by: java.lang.UnsupportedOperationException: Metric 'test_data' should not be computed by a Sensor\r\n[11:16:10]: ▸ at org.sonar.scanner.sensor.DefaultSensorStorage.saveMeasure(DefaultSensorStorage.java:240)\r\n[11:16:10]: ▸ at org.sonar.scanner.index.DefaultIndex.addMeasure(DefaultIndex.java:231)\r\n[11:16:10]: ▸ at org.sonar.scanner.deprecated.DeprecatedSensorContext.saveMeasure(DeprecatedSensorContext.java:131)\r\n[11:16:10]: ▸ at org.sonar.plugins.swift.tests.SwiftSurefireParser.saveTestsDetails(SwiftSurefireParser.java:167)\r\n[11:16:10]: ▸ at org.sonar.plugins.swift.tests.SwiftSurefireParser.parseFiles(SwiftSurefireParser.java:135)\r\n[11:16:10]: ▸ ... 32 more\r\n```"},"comment":{"url":"https://api.github.com/repos/Backelite/sonar-swift/issues/comments/268350043","html_url":"https://github.com/Backelite/sonar-swift/issues/61#issuecomment-268350043","issue_url":"https://api.github.com/repos/Backelite/sonar-swift/issues/61","id":268350043,"user":{"login":"giacgbj","id":1658549,"avatar_url":"https://avatars.githubusercontent.com/u/1658549?v=3","gravatar_id":"","url":"https://api.github.com/users/giacgbj","html_url":"https://github.com/giacgbj","followers_url":"https://api.github.com/users/giacgbj/followers","following_url":"https://api.github.com/users/giacgbj/following{/other_user}","gists_url":"https://api.github.com/users/giacgbj/gists{/gist_id}","starred_url":"https://api.github.com/users/giacgbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giacgbj/subscriptions","organizations_url":"https://api.github.com/users/giacgbj/orgs","repos_url":"https://api.github.com/users/giacgbj/repos","events_url":"https://api.github.com/users/giacgbj/events{/privacy}","received_events_url":"https://api.github.com/users/giacgbj/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T20:28:54Z","updated_at":"2016-12-20T20:28:54Z","body":"@jkernech I don't think you can avoid it. The code must be changed. \r\nConsidering the names of the classes involved, you can try not to generate test reports in order to avoid, at least, that exception."}}
{"actor":{"display_login":"giacgbj"}}