octo-technology/sonar-objective-c — pull request #54 by vdesaintpern (2014-02-12 14:54:35+00:00)
Title: Adding support for white spaces in directories, adding support for those with specific test configuration, commented workaround for flawed compile-commands.json with OCLINT, hint for surefire not picking up junit reports

Adding support for specific test configuration + potential white spaces in directories :
-> if your configuration was called "Unit Test" for example the script crashed (miserably).
-> if you had a specific configuration for unit testing (different from the one you use for running : typically Debug), this was trying to look for gcda files in the Debug/$project.build folder. This now generates the compile-command.json out of the test scheme build configuration where the GCDA will sit when the tests are done.

Commented workaround for flawed compile-commands.json with OCLINT :
Some versions of xctool don't generate a compile-commands.json or generate a flawed one. Didn't take time to list the flawed versions of xctool or investigate more. Found a workaround building the app up manually with xcodebuild which is acceptable in my case.

Hint for surefire not picking up junit reports :
Default sonarqube setup comes with surefire plugin 1.5. This doesn't support the property : sonar.junit.reportsPath. You've got to go with : sonar.surefire.reportsPath=sonar-reports/
Plus for some reason I didn't take time to investigate, it looks like with version 2.3 you need both properties...