{"action":"closed","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/511","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/511/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/511/events","html_url":"https://github.com/fastlane/fastlane/issues/511","id":101830641,"number":511,"title":"Oclint action fails when provided regex for excluding classes from Pods?","user":{"login":"yuriy-tolstoguzov","id":2045882,"avatar_url":"https://avatars.githubusercontent.com/u/2045882?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriy-tolstoguzov","html_url":"https://github.com/yuriy-tolstoguzov","followers_url":"https://api.github.com/users/yuriy-tolstoguzov/followers","following_url":"https://api.github.com/users/yuriy-tolstoguzov/following{/other_user}","gists_url":"https://api.github.com/users/yuriy-tolstoguzov/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriy-tolstoguzov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriy-tolstoguzov/subscriptions","organizations_url":"https://api.github.com/users/yuriy-tolstoguzov/orgs","repos_url":"https://api.github.com/users/yuriy-tolstoguzov/repos","events_url":"https://api.github.com/users/yuriy-tolstoguzov/events{/privacy}","received_events_url":"https://api.github.com/users/yuriy-tolstoguzov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-19T08:05:14Z","updated_at":"2015-12-10T20:16:19Z","closed_at":"2015-12-10T20:16:19Z","body":"I use fastlane-1.17.1, but will try to update it soon. I created next lane for testing my code:\r\n```\r\n  lane :test do\r\n    xctool [\r\n      \"--reporter\", \"json-compilation-database:compile_commands.json\",\r\n      \"clean\",\r\n      \"build\"\r\n    ].join(\" \")\r\n    xctool :test\r\n    oclint(\r\n      compile_commands: 'compile_commands.json',\r\n      select_reqex: /^((?!Pods)[\\s\\S])*$/,               # Select all files matching this reqex\r\n      report_type: 'pmd',\r\n      max_priority_1: 10,                # The max allowed number of priority 1 violations\r\n      max_priority_2: 100,               # The max allowed number of priority 2 violations\r\n      max_priority_3: 1000,              # The max allowed number of priority 3 violations\r\n      rc: 'LONG_LINE=200'                # Override the default behavior of rules\r\n    ) \r\n  end\r\n```\r\n\r\nRegex I took from this answer: http://stackoverflow.com/a/406408/2122979\r\nI've tried also `/^((?!Pods).)*$/` with same result. It works fine if I comment select_regex line.\r\n\r\nIt fails\r\n```\r\n/Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/actions/actions_helper.rb:113:in `sh_no_action': Exit status of command 'cd /Users/ossir/Desktop/{Project}/{Project} && oclint -report-type=pmd -o=oclint_report.pmd -rc=LONG_LINE=200 -max-priority-1=10 -max-priority-2=100 -max-priority-3=1000 \"{long list of files without Pods which is good}\"' was 256 instead of 0.  (RuntimeError)\r\nLLVM ERROR: Could not auto-detect compilation database for file \"/Users/ossir/Library/Developer/Xcode/DerivedData/{Project}-bjkziuvyrwbvkzbzmqqwaevctmfa/Build/Intermediates/{Project}.build/Debug-iphonesimulator/{Project}.build/DerivedSources/{Project}_vers.c\"\r\nNo compilation database found in /Users/ossir/Library/Developer/Xcode/DerivedData/{Project}-bjkziuvyrwbvkzbzmqqwaevctmfa/Build/Intermediates/{Project}.build/Debug-iphonesimulator/{Project}.build/DerivedSources or any parent directory\r\njson-compilation-database: Error while opening JSON database: No such file or directory\r\n\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/actions/actions_helper.rb:87:in `sh'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/action.rb:63:in `sh'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/actions/oclint.rb:44:in `run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/runner.rb:142:in `block (2 levels) in execute_action'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/actions/actions_helper.rb:62:in `execute_action'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/runner.rb:128:in `block in execute_action'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/runner.rb:127:in `chdir'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/runner.rb:127:in `execute_action'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/fast_file.rb:120:in `method_missing'\r\n\tfrom (eval):41:in `block (3 levels) in parse'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/lane.rb:36:in `call'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/lane.rb:36:in `call'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/runner.rb:50:in `block in execute'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/runner.rb:44:in `chdir'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/runner.rb:44:in `execute'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/lane_manager.rb:36:in `cruise_lane'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/lib/fastlane/command_line_handler.rb:31:in `handle'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/bin/fastlane:35:in `block (2 levels) in run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/bin/fastlane:124:in `run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.17.1/bin/fastlane:130:in `<top (required)>'\r\n\tfrom /usr/bin/fastlane:23:in `load'\r\n\tfrom /usr/bin/fastlane:23:in `<main>'\r\n\r\n```"}}