{"action":"created","issue":{"url":"https://api.github.com/repos/octo-technology/sonar-objective-c/issues/72","labels_url":"https://api.github.com/repos/octo-technology/sonar-objective-c/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/octo-technology/sonar-objective-c/issues/72/comments","events_url":"https://api.github.com/repos/octo-technology/sonar-objective-c/issues/72/events","html_url":"https://github.com/octo-technology/sonar-objective-c/issues/72","id":53990151,"number":72,"title":"No coverage or violations report data for v0.3 or v0.4","user":{"login":"jamesreeve","id":4434258,"avatar_url":"https://avatars.githubusercontent.com/u/4434258?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesreeve","html_url":"https://github.com/jamesreeve","followers_url":"https://api.github.com/users/jamesreeve/followers","following_url":"https://api.github.com/users/jamesreeve/following{/other_user}","gists_url":"https://api.github.com/users/jamesreeve/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesreeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesreeve/subscriptions","organizations_url":"https://api.github.com/users/jamesreeve/orgs","repos_url":"https://api.github.com/users/jamesreeve/repos","events_url":"https://api.github.com/users/jamesreeve/events{/privacy}","received_events_url":"https://api.github.com/users/jamesreeve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-11T12:15:43Z","updated_at":"2015-01-13T11:02:35Z","closed_at":null,"body":"Hello,\r\n\r\nI have been trying to get both v0.3 and 0.4 of your plugin working with Sonar but to no avail at all.\r\nI get the info on how many classes and it picks up changes when i put in code changes. But it claims there are no violations in the code but i even tried to put some in manually in the code to cause violations but they never get picked up.\r\n\r\nI have tried running against different git projects too that I know do contain violations, but all come up with no violations and code coverage reports.\r\n\r\nLet me know if you need anything else from me to help diagnose the issues I am getting.\r\n\r\n#### First i will cover off what I have tried with version 0.4:\r\n* Sonarqube server 4.5.2\r\n* SonarQube Runner 2.4\r\n* Java 1.7.0_17 Oracle Corporation (64-bit)\r\n* Mac OS X 10.9.5 x86_64\r\n* Java plugin 2.4 installed\r\n* Find Bugs 2.4 installed\r\n* sonar-objective-c 0.4.0-SNAPSHOT\r\n\r\nWhen i call run-sonar.sh -v i get:\r\n\r\n\t`..\r\n\t..\r\n\t..\r\n\t** CLEAN SUCCEEDED ** (3712 ms)\r\n\t+ returnValue=0\r\n\t+ set +x\r\n\t+ xctool -workspace iOctocat.xcworkspace -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme iOctocat -reporter json-compilation-database:compile_commands.json build\r\n\tSkipping tests as no test scheme has been provided!\r\n\tRunning OCLint...\r\n\tPath included in oclint analysis is: --include '.*/ioctocat/Classes'\r\n\t+ oclint-json-compilation-database --include ''\\''.*/ioctocat/Classes'\\''' -- -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -report-type pmd -o sonar-reports/oclint.xml\r\n\t+ returnValue=0\r\n\t+ set +x\r\n\tRunning SonarQube using SonarQube Runner\r\n\t+ sonar-runner\r\n\tSonarQube Runner 2.4\r\n\tJava 1.7.0_17 Oracle Corporation (64-bit)\r\n\tMac OS X 10.9.5 x86_64\r\n\tINFO: Runner configuration file: /usr/local/Cellar/sonar-runner/2.4/libexec/conf/sonar-runner.properties\r\n\tINFO: Project configuration file: /Users/jimmy/ioctocat/sonar-project.properties\r\n\tINFO: Default locale: \"en_US\", source code encoding: \"UTF-8\"\r\n\tINFO: Work directory: /Users/jimmy/ioctocat/./.sonar\r\n\tINFO: SonarQube Server 4.5.2\r\n\t23:04:46.185 INFO  - Load global referentials...\r\n\t23:04:46.345 INFO  - Load global referentials done: 165 ms\r\n\t23:04:46.356 INFO  - User cache: /Users/jimmy/.sonar/cache\r\n\t23:04:46.367 INFO  - Install plugins\r\n\t23:04:46.567 INFO  - Install JDBC driver\r\n\t23:04:46.573 INFO  - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar\r\n\t23:04:47.740 INFO  - Initializing Hibernate\r\n\t23:04:49.560 INFO  - Load project referentials...\r\n\t23:04:49.755 INFO  - Load project referentials done: 195 ms\r\n\t23:04:49.755 INFO  - Load project settings\r\n\t23:04:50.284 INFO  - Loading technical debt model...\r\n\t23:04:50.300 INFO  - Loading technical debt model done: 16 ms\r\n\t23:04:50.302 INFO  - Apply project exclusions\r\n\t23:04:50.505 INFO  - -------------  Scan iOctocat\r\n\t23:04:50.511 INFO  - Load module settings\r\n\t23:04:50.736 INFO  - Language is forced to objc\r\n\t23:04:50.737 INFO  - Loading rules...\r\n\t23:04:51.173 INFO  - Loading rules done: 436 ms\r\n\t23:04:51.193 INFO  - Configure Maven plugins\r\n\t23:04:51.264 INFO  - Compare to previous analysis (2015-01-11)\r\n\t23:04:51.271 INFO  - Compare over 30 days (2014-12-12, analysis of 2015-01-11 22:59:13.069)\r\n\t23:04:51.271 INFO  - No quality gate is configured.\r\n\t23:04:51.382 INFO  - Base dir: /Users/jimmy/ioctocat/.\r\n\t23:04:51.383 INFO  - Working dir: /Users/jimmy/ioctocat/./.sonar\r\n\t23:04:51.383 INFO  - Source paths: Classes\r\n\t23:04:51.383 INFO  - Source encoding: UTF-8, default locale: en_US\r\n\t23:04:51.383 INFO  - Index files\r\n\t23:04:51.604 INFO  - 249 files indexed\r\n\t23:04:52.323 INFO  - Quality profile for objc: OCLint\r\n\t23:04:52.470 INFO  - Sensor QProfileSensor...\r\n\t23:04:52.476 INFO  - Sensor QProfileSensor done: 6 ms\r\n\t23:04:52.476 INFO  - Sensor ObjectiveCSquidSensor...\r\n\t23:04:53.097 INFO  - Sensor ObjectiveCSquidSensor done: 621 ms\r\n\t23:04:53.097 INFO  - Sensor Objective-C SurefireSensor...\r\n\t23:04:53.097 INFO  - parsing sonar-reports\r\n\t23:04:53.171 INFO  - Sensor Objective-C SurefireSensor done: 74 ms\r\n\t23:04:53.171 INFO  - Sensor org.sonar.plugins.objectivec.coverage.CoberturaSensor@7252537b...\r\n\t23:04:53.184 INFO  - Processing coverage report /Users/jimmy/ioctocat/./sonar-reports/coverage.xml\r\n\t23:04:53.186 INFO  - Sensor org.sonar.plugins.objectivec.coverage.CoberturaSensor@7252537b done: 14 ms\r\n\t23:04:53.186 INFO  - Sensor org.sonar.plugins.objectivec.violations.OCLintSensor@7ae6eadf...\r\n\t23:04:53.186 INFO  - Processing OCLint report /Users/jimmy/ioctocat/./sonar-reports/oclint.xml\r\n\t23:04:53.187 ERROR - Reporting 0 violations.\r\n\t23:04:53.187 INFO  - Sensor org.sonar.plugins.objectivec.violations.OCLintSensor@7ae6eadf done: 1 ms\r\n\t23:04:53.187 INFO  - Sensor InitialOpenIssuesSensor...\r\n\t23:04:53.191 INFO  - Sensor InitialOpenIssuesSensor done: 4 ms\r\n\t23:04:53.191 INFO  - Sensor ProjectLinksSensor...\r\n\t23:04:53.195 INFO  - Sensor ProjectLinksSensor done: 4 ms\r\n\t23:04:53.196 INFO  - Sensor VersionEventsSensor...\r\n\t23:04:53.204 INFO  - Sensor VersionEventsSensor done: 8 ms\r\n\t23:04:53.205 INFO  - Sensor FileHashSensor...\r\n\t23:04:53.216 INFO  - Sensor FileHashSensor done: 11 ms\r\n\t23:04:53.216 INFO  - Sensor CPD Sensor (wrapped)...\r\n\t23:04:53.216 INFO  - DefaultCpdEngine is used for objc\r\n\t23:04:53.224 INFO  - Cross-project analysis disabled\r\n\t23:04:53.573 INFO  - Sensor CPD Sensor (wrapped) done: 357 ms\r\n\t23:04:53.852 INFO  - Execute decorators...\r\n\t23:04:55.268 INFO  - Store results in database\r\n\t23:04:55.959 INFO  - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/iOctocat\r\n\t23:04:55.978 INFO  - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob\r\n\t23:04:55.979 INFO  - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob\r\n\t23:04:55.987 INFO  - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob\r\n\t23:04:55.994 INFO  - -> Keep one snapshot per day between 2014-12-14 and 2015-01-10\r\n\t23:04:55.995 INFO  - -> Keep one snapshot per week between 2014-01-12 and 2014-12-14\r\n\t23:04:55.995 INFO  - -> Keep one snapshot per month between 2010-01-17 and 2014-01-12\r\n\t23:04:55.996 INFO  - -> Delete data prior to: 2010-01-17\r\n\t23:04:56.000 INFO  - -> Clean iOctocat [id=962]\r\n\t23:04:56.007 INFO  - <- Clean snapshot 5059\r\n\tINFO: ------------------------------------------------------------------------\r\n\tINFO: EXECUTION SUCCESS\r\n\tINFO: ------------------------------------------------------------------------\r\n\tTotal time: 10.711s\r\n\tFinal Memory: 12M/111M\r\n\tINFO: ------------------------------------------------------------------------\r\n\t+ returnValue=0\r\n\t+ set +x\r\n\r\n\r\n\r\n#### Then I have also tried v0.3 of the plugin:\r\n* Sonarqube server 3.7.4\r\n* SonarQube Runner 2.4\r\n* Java 1.7.0_17 Oracle Corporation (64-bit)\r\n* Mac OS X 10.9.5 x86_64\r\n* Java plugin 1.3 installed\r\n* sonar-objective-c 0.3.1\r\n\r\nWhen i call run-sonar.sh -v i get:\r\n\t\r\n\t'..\r\n\t..\r\n\t..\r\n\t** CLEAN SUCCEEDED ** (3683 ms)\r\n\t\r\n\t+ returnValue=0\r\n\t+ set +x\r\n\t\r\n\t+ xctool -workspace iOctocat.xcworkspace -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme iOctocat -reporter json-compilation-database:compile_commands.json build\r\n\t+ returnValue=0\r\n\t+ set +x\r\n\tSkipping tests as no test scheme has been provided!\r\n\tRunning OCLint...\r\n\tPath included in oclint analysis is: --include '.*/ioctocat/Classes'\r\n\t+ oclint-json-compilation-database --include ''\\''.*/ioctocat/Classes'\\''' -- -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -report-type pmd -o sonar-reports/oclint.xml\r\n\t+ returnValue=0\r\n\t+ set +x\r\n\tRunning SonarQube using SonarQube Runner\r\n\t+ sonar-runner\r\n\tSonarQube Runner 2.4\r\n\tJava 1.7.0_17 Oracle Corporation (64-bit)\r\n\tMac OS X 10.9.5 x86_64\r\n\tINFO: Runner configuration file: /usr/local/Cellar/sonar-runner/2.4/libexec/conf/sonar-runner.properties\r\n\tINFO: Project configuration file: /Users/jimmy/ioctocat/sonar-project.properties\r\n\tINFO: Default locale: \"en_US\", source code encoding: \"UTF-8\"\r\n\tINFO: Work directory: /Users/jimmy/ioctocat/./.sonar\r\n\tINFO: SonarQube Server 3.7.4\r\n\t23:09:47.787 INFO  - Load batch settings\r\n\t23:09:47.896 INFO  - User cache: /Users/jimmy/.sonar/cache\r\n\t23:09:47.900 INFO  - Install plugins\r\n\t23:09:48.320 INFO  - Install JDBC driver\r\n\t23:09:48.328 WARN  - H2 database should be used for evaluation purpose only\r\n\t23:09:48.328 INFO  - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar\r\n\t23:09:49.217 INFO  - Initializing Hibernate\r\n\t23:09:51.522 INFO  - Load project settings\r\n\t23:09:51.591 INFO  - Apply project exclusions\r\n\t23:09:51.705 INFO  - -------------  Scan iOctocat\r\n\t23:09:51.709 INFO  - Load module settings\r\n\t23:09:51.996 INFO  - Quality profile : [name=OCLint,language=objc]\r\n\t23:09:52.009 INFO  - Excluded tests: \r\n\t23:09:52.009 INFO  -   **/package-info.java\r\n\t23:09:52.037 INFO  - Configure Maven plugins\r\n\t23:09:52.082 INFO  - Compare to previous analysis (2015-01-11)\r\n\t23:09:52.096 INFO  - Compare over 30 days (2014-12-12, analysis of 2015-01-11 21:53:29.555)\r\n\t23:09:52.108 INFO  - Compare to previous version\r\n\t23:09:52.163 INFO  - Base dir: /Users/jimmy/ioctocat/.\r\n\t23:09:52.163 INFO  - Working dir: /Users/jimmy/ioctocat/./.sonar\r\n\t23:09:52.163 INFO  - Source dirs: /Users/jimmy/ioctocat/Classes\r\n\t23:09:52.163 INFO  - Source encoding: UTF-8, default locale: en_US\r\n\t23:09:52.217 INFO  - Sensor ObjectiveCSourceImporter...\r\n\t23:09:53.281 INFO  - Sensor ObjectiveCSourceImporter done: 1064 ms\r\n\t23:09:53.281 INFO  - Sensor ObjectiveCSquidSensor...\r\n\t23:09:53.702 INFO  - Sensor ObjectiveCSquidSensor done: 421 ms\r\n\t23:09:53.702 INFO  - Sensor Objective-C SurefireSensor...\r\n\t23:09:53.703 INFO  - parsing /Users/jimmy/ioctocat/./.sonar/build/surefire-reports\r\n\t23:09:53.703 INFO  - Sensor Objective-C SurefireSensor done: 1 ms\r\n\t23:09:53.703 INFO  - Sensor org.sonar.plugins.objectivec.coverage.CoberturaSensor@42d01e76...\r\n\t23:09:53.711 INFO  - Processing coverage report /Users/jimmy/ioctocat/./sonar-reports/coverage.xml\r\n\t23:09:53.782 INFO  - Sensor org.sonar.plugins.objectivec.coverage.CoberturaSensor@42d01e76 done: 79 ms\r\n\t23:09:53.782 INFO  - Sensor org.sonar.plugins.objectivec.violations.OCLintSensor@6d7ff73e...\r\n\t23:09:53.782 INFO  - Processing OCLint report /Users/jimmy/ioctocat/./sonar-reports/oclint.xml\r\n\t23:09:53.786 ERROR - Reporting 0 violations.\r\n\t23:09:53.786 INFO  - Sensor org.sonar.plugins.objectivec.violations.OCLintSensor@6d7ff73e done: 4 ms\r\n\t23:09:53.786 INFO  - Sensor CpdSensor...\r\n\t23:09:53.786 INFO  - SonarBridgeEngine is used\r\n\t23:09:53.802 INFO  - Cross-project analysis disabled\r\n\t23:09:54.267 INFO  - Sensor CpdSensor done: 481 ms\r\n\t23:09:54.267 INFO  - Sensor InitialOpenIssuesSensor...\r\n\t23:09:54.273 INFO  - Sensor InitialOpenIssuesSensor done: 6 ms\r\n\t23:09:54.273 INFO  - Sensor ProfileSensor...\r\n\t23:09:54.331 INFO  - Sensor ProfileSensor done: 58 ms\r\n\t23:09:54.331 INFO  - Sensor ProfileEventsSensor...\r\n\t23:09:54.351 INFO  - Sensor ProfileEventsSensor done: 20 ms\r\n\t23:09:54.351 INFO  - Sensor ProjectLinksSensor...\r\n\t23:09:54.357 INFO  - Sensor ProjectLinksSensor done: 6 ms\r\n\t23:09:54.357 INFO  - Sensor VersionEventsSensor...\r\n\t23:09:54.366 INFO  - Sensor VersionEventsSensor done: 9 ms\r\n\t23:09:54.630 INFO  - Execute decorators...\r\n\t23:09:57.016 INFO  - Store results in database\r\n\t23:09:57.190 INFO  - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/iOctocat\r\n\t23:09:57.261 INFO  - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob\r\n\t23:09:57.262 INFO  - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob\r\n\t23:09:57.331 INFO  - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob\r\n\t23:09:57.341 INFO  - -> Keep one snapshot per day between 2014-12-14 and 2015-01-10\r\n\t23:09:57.342 INFO  - -> Keep one snapshot per week between 2014-01-12 and 2014-12-14\r\n\t23:09:57.342 INFO  - -> Keep one snapshot per month between 2010-01-17 and 2014-01-12\r\n\t23:09:57.342 INFO  - -> Delete data prior to: 2010-01-17\r\n\t23:09:57.345 INFO  - -> Clean iOctocat [id=1]\r\n\t23:09:57.349 INFO  - <- Clean snapshot 1\r\n\tINFO: ------------------------------------------------------------------------\r\n\tINFO: EXECUTION SUCCESS\r\n\tINFO: ------------------------------------------------------------------------\r\n\tTotal time: 10.951s\r\n\tFinal Memory: 11M/113M\r\n\tINFO: ------------------------------------------------------------------------\r\n\t+ returnValue=0\r\n\t+ set +x\r\n"},"comment":{"url":"https://api.github.com/repos/octo-technology/sonar-objective-c/issues/comments/69728334","html_url":"https://github.com/octo-technology/sonar-objective-c/issues/72#issuecomment-69728334","issue_url":"https://api.github.com/repos/octo-technology/sonar-objective-c/issues/72","id":69728334,"user":{"login":"jamesreeve","id":4434258,"avatar_url":"https://avatars.githubusercontent.com/u/4434258?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesreeve","html_url":"https://github.com/jamesreeve","followers_url":"https://api.github.com/users/jamesreeve/followers","following_url":"https://api.github.com/users/jamesreeve/following{/other_user}","gists_url":"https://api.github.com/users/jamesreeve/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesreeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesreeve/subscriptions","organizations_url":"https://api.github.com/users/jamesreeve/orgs","repos_url":"https://api.github.com/users/jamesreeve/repos","events_url":"https://api.github.com/users/jamesreeve/events{/privacy}","received_events_url":"https://api.github.com/users/jamesreeve/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T11:02:35Z","updated_at":"2015-01-13T11:02:35Z","body":"Hi all, thanks for your fast responses. Lets try and fix this issue together :)\r\n\r\nGlist with the files you were asking for: https://gist.github.com/1c950bade93dafe8f67b.git\r\n\r\nrompic - I was unable to run sonar runner with a -X Flag, can you explain how i can do this? It did not recognise -X"}}