Files
gitlabhq/lib
Robert Speicher e7586cfbdc Merge branch 'rubocop/enable-negatedif-style-cop' into 'master'
Enable Style/NegatedIf Rubocop cop

Favor `unless` over `if` for negative conditions (or control flow ||).

```ruby
# bad
do_something if !some_condition
# bad
do_something if not some_condition

# good
do_something unless some_condition
# good
some_condition || do_something
```

See #17478

See merge request !4355
2016-05-30 17:59:10 +00:00
..
2016-05-24 22:52:31 -05:00
2016-05-30 13:53:25 +02:00
2016-05-14 18:23:31 -05:00
2016-03-02 22:19:36 -05:00
2015-11-10 12:51:50 +01:00
2014-08-14 15:48:14 +04:00
2015-11-10 12:51:50 +01:00