Files
gitlabhq/config/initializers
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-02-17 14:05:58 -05:00
2015-05-15 15:32:49 +02:00
2011-10-09 00:36:38 +03:00
2015-10-15 12:05:01 +02:00
2015-11-25 18:18:44 +02:00
2015-11-25 18:18:44 +02:00
2016-03-16 02:17:07 +09:00
2015-04-15 12:25:24 -04:00
2015-12-08 14:58:15 +01:00
2016-05-25 16:56:06 -04:00
2015-03-20 16:13:03 -07:00
2015-11-25 18:18:44 +02:00
2015-11-25 18:18:44 +02:00
2015-11-25 18:18:44 +02:00
2016-04-13 20:57:19 +03:00
2015-11-26 17:03:43 +02:00
2011-10-09 00:36:38 +03:00