{"action":"created","issue":{"url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/83","repository_url":"https://api.github.com/repos/nevir/rubocop-rspec","labels_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/83/comments","events_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/83/events","html_url":"https://github.com/nevir/rubocop-rspec/pull/83","id":150949797,"number":83,"title":"Add cop to check for predicate matcher","user":{"login":"haeky","id":4105421,"avatar_url":"https://avatars.githubusercontent.com/u/4105421?v=3","gravatar_id":"","url":"https://api.github.com/users/haeky","html_url":"https://github.com/haeky","followers_url":"https://api.github.com/users/haeky/followers","following_url":"https://api.github.com/users/haeky/following{/other_user}","gists_url":"https://api.github.com/users/haeky/gists{/gist_id}","starred_url":"https://api.github.com/users/haeky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haeky/subscriptions","organizations_url":"https://api.github.com/users/haeky/orgs","repos_url":"https://api.github.com/users/haeky/repos","events_url":"https://api.github.com/users/haeky/events{/privacy}","received_events_url":"https://api.github.com/users/haeky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-04-25T18:51:12Z","updated_at":"2016-07-27T20:12:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nevir/rubocop-rspec/pulls/83","html_url":"https://github.com/nevir/rubocop-rspec/pull/83","diff_url":"https://github.com/nevir/rubocop-rspec/pull/83.diff","patch_url":"https://github.com/nevir/rubocop-rspec/pull/83.patch"},"body":"Favor `expect(foo).to be_valid` over `expect(foo.valid?).to be_truthy`"},"comment":{"url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/comments/235705731","html_url":"https://github.com/nevir/rubocop-rspec/pull/83#issuecomment-235705731","issue_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/83","id":235705731,"user":{"login":"backus","id":2085622,"avatar_url":"https://avatars.githubusercontent.com/u/2085622?v=3","gravatar_id":"","url":"https://api.github.com/users/backus","html_url":"https://github.com/backus","followers_url":"https://api.github.com/users/backus/followers","following_url":"https://api.github.com/users/backus/following{/other_user}","gists_url":"https://api.github.com/users/backus/gists{/gist_id}","starred_url":"https://api.github.com/users/backus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backus/subscriptions","organizations_url":"https://api.github.com/users/backus/orgs","repos_url":"https://api.github.com/users/backus/repos","events_url":"https://api.github.com/users/backus/events{/privacy}","received_events_url":"https://api.github.com/users/backus/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T20:12:29Z","updated_at":"2016-07-27T20:12:29Z","body":"@haeky some cops have allow you to specify a style. For example:\r\n\r\n* [`BarePercentLiterals` Config](https://github.com/bbatsov/rubocop/blob/master/config/default.yml#L194-L199)\r\n* [`BarePercentLiterals` implementation which takes configuration into account](https://github.com/bbatsov/rubocop/blob/master/lib/rubocop/cop/style/bare_percent_literals.rb#L9)\r\n\r\nSo we are saying that it would be nice if we could write something like\r\n\r\n```yaml\r\nRSpec/Predicate:\r\n  Description: 'Prefer using predicate matcher instead of truthiness'\r\n  EnforcedStyle: inflected\r\n  SupportedStyles:\r\n      - inflected # enforces expect(foo).to be_bar\r\n      - explicit  # enforces expect(foo.bar?).to be(true)\r\n  Enabled: true\r\n```\r\n\r\n(idk about the naming for the `SupportedStyles` thing but you get the idea)"}}
{"actor":{"display_login":"backus"}}