{"action":"opened","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/3403","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/3403/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/3403/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/3403/events","html_url":"https://github.com/bbatsov/rubocop/issues/3403","id":170686571,"number":3403,"title":"Style/PercentLiteralDelimiters does dot detect wrong delimiters if string contains `(`","user":{"login":"noniq","id":244158,"avatar_url":"https://avatars.githubusercontent.com/u/244158?v=3","gravatar_id":"","url":"https://api.github.com/users/noniq","html_url":"https://github.com/noniq","followers_url":"https://api.github.com/users/noniq/followers","following_url":"https://api.github.com/users/noniq/following{/other_user}","gists_url":"https://api.github.com/users/noniq/gists{/gist_id}","starred_url":"https://api.github.com/users/noniq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noniq/subscriptions","organizations_url":"https://api.github.com/users/noniq/orgs","repos_url":"https://api.github.com/users/noniq/repos","events_url":"https://api.github.com/users/noniq/events{/privacy}","received_events_url":"https://api.github.com/users/noniq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-11T16:20:14Z","updated_at":"2016-08-11T16:20:14Z","closed_at":null,"body":"With default settings, each of the following lines should trigger the Style/PercentLiteralDelimiters cop (*“%-literals should be delimited by ( and ).”*), but none of them does:\r\n\r\n```ruby\r\nputs %{(}\r\nputs %{ ) }\r\nputs %[( )]\r\n```\r\n\r\nIt seems to make no difference which delimiters are used: As long as the string contains at least a single opening or closing paren, the cop isn’t triggered.\r\n\r\n--------\r\n\r\n## Expected behavior\r\nStyle/PercentLiteralDelimiters cop triggered.\r\n\r\n## Actual behavior\r\nStyle/PercentLiteralDelimiters cop not triggered.\r\n\r\n## Steps to reproduce the problem\r\nRun RuboCop with default settings on the Ruby code given above.\r\n\r\n## RuboCop version\r\n\r\n```\r\n$ rubocop/bin/rubocop -V\r\n0.42.0 (using Parser 2.3.1.2, running on ruby 2.1.6 x86_64-darwin14.0)\r\n$ (cd rubocop && git rev-parse HEAD)\r\n429153801d1922bd7f2cc8ab577374cea7017630\r\n```\r\n"}}
{"actor":{"display_login":"noniq"}}