{"push_id":1604478319,"size":1,"distinct_size":1,"ref":"refs/heads/negated-if-with-prefix-postfix","head":"c85ed53cf2f7a39e307b76a08d1ebd98e3b4992b","before":"a3d15339907f2d66ab2b5101ddab0aa08a4cb2b2","commits":[{"sha":"c85ed53cf2f7a39e307b76a08d1ebd98e3b4992b","author":{"name":"Brandon Weiss","email":"49a439206e6da5bc970f2cf1afc69cf2ce15451b@anti-pattern.com"},"message":"Adding “prefix” and “postfix” styles to Style/NegatedIf\n\n[Fixes bbatsov/rubocop#3961]\n\nSome people have a strong preference against using unless with an `if`\nstatement in multi-line/block form:\n\n```ruby\nunless foo\nbar\nend\n```\n\nBut they think it still makes sense to use it in single-line/modifier\nform:\n\n```ruby\nbar unless foo\n```\n\nI’ve added three supported styles:\n\n* `prefix` will only enforce using `unless` in the multi-line/block form\n* `postfix` will only enforce using `unless` in the\nsingle-line/modifier form\n* `both` will enforce using `unless` in both the `prefix` and `postfix`\nforms","distinct":true,"url":"https://api.github.com/repos/brandonweiss/rubocop/commits/c85ed53cf2f7a39e307b76a08d1ebd98e3b4992b"}]}
{"actor":{"display_login":"brandonweiss"}}