{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/xctool/issues/489","labels_url":"https://api.github.com/repos/facebook/xctool/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/facebook/xctool/issues/489/comments","events_url":"https://api.github.com/repos/facebook/xctool/issues/489/events","html_url":"https://github.com/facebook/xctool/issues/489","id":59091817,"number":489,"title":"json-compilation-database oclint issue in projects with spaces in the name ","user":{"login":"xfreebird","id":201351,"avatar_url":"https://avatars.githubusercontent.com/u/201351?v=3","gravatar_id":"","url":"https://api.github.com/users/xfreebird","html_url":"https://github.com/xfreebird","followers_url":"https://api.github.com/users/xfreebird/followers","following_url":"https://api.github.com/users/xfreebird/following{/other_user}","gists_url":"https://api.github.com/users/xfreebird/gists{/gist_id}","starred_url":"https://api.github.com/users/xfreebird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfreebird/subscriptions","organizations_url":"https://api.github.com/users/xfreebird/orgs","repos_url":"https://api.github.com/users/xfreebird/repos","events_url":"https://api.github.com/users/xfreebird/events{/privacy}","received_events_url":"https://api.github.com/users/xfreebird/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-26T15:50:59Z","updated_at":"2015-02-26T15:50:59Z","closed_at":null,"body":"Hi,\r\n\r\nI have a project which has spaces in the name. \r\nWhen I run oclint 0.8.1 with compile_commands.json generated by xctool json-compilation-database reporter, the generated oclint.xml contains no results.\r\nI created a sample project https://github.com/xfreebird/xctooloclintspaceissue\r\n\r\n```\r\n$ xctool -project \"Project Name With Spaces.xcodeproj\" -scheme \"Project Name With Spaces\" -configuration Debug -sdk iphonesimulator clean build -reporter json-compilation-database:compile_commands.json\r\n$ oclint-json-compilation-database -v -- -report-type pmd -o \"oclint.xml\" \r\n------------------------------ OCLint ------------------------------\r\n/usr/local/bin/oclint -report-type pmd -o oclint.xml \"\"\r\n--------------------------------------------------------------------\r\n```\r\noclint.xml https://gist.github.com/809329169f99abaffe3a.git\r\n\r\n\r\nIf I do the same but with xcodebuild directly, all works as expected:\r\n```\r\n$ xcodebuild -project \"Project Name With Spaces.xcodeproj\" -scheme \"Project Name With Spaces\" -configuration Debug -sdk iphonesimulator clean build | tee xcodebuild.log\r\n$ oclint-xcodebuild xcodebuild.log \r\n$ oclint-json-compilation-database -v -- -report-type pmd -o \"oclint.xml\" \r\n------------------------------ OCLint ------------------------------\r\n/usr/local/bin/oclint -report-type pmd -o oclint.xml \"/Users/nghimbovschi/Projects/Project Name With Spaces/Project Name With Spaces/AppDelegate.m\" \"/Users/nghimbovschi/Projects/Project Name With Spaces/Project Name With Spaces/ViewController.m\" \"/Users/nghimbovschi/Projects/Project Name With Spaces/Project Name With Spaces/main.m\" \"/Users/nghimbovschi/Projects/Project Name With Spaces/Project Name With SpacesTests/Project_Name_With_SpacesTests.m\"\r\n--------------------------------------------------------------------\r\n```\r\noclint.xml https://gist.github.com/edd8f2687f3b1a347f2f.git\r\n\r\n```\r\n$ xctool -version\r\n0.2.2\r\n\r\n$ xcodebuild -version\r\nXcode 6.1.1\r\nBuild version 6A2008a\r\n\r\n$ oclint -version\r\nLLVM (http://llvm.org/):\r\n  LLVM version 3.5.0svn\r\n  Optimized build.\r\n  Built Oct 19 2014 (09:55:19).\r\n  Default target: x86_64-apple-darwin14.1.0\r\n  Host CPU: core-avx2\r\n\r\nOCLint (http://oclint.org/):\r\n  OCLint version 0.8.1.\r\n  Built Oct 19 2014 (10:24:44).\r\n```"}}