gitlab-org--gitlab-foss/app/models/ci
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
..
build.rb Enable Style/MethodDefParentheses rubocop cop 2016-05-30 12:08:53 +02:00
commit.rb Fix specs for MySQL 2016-05-14 14:47:47 -05:00
runner.rb Enable Style/NegatedIf Rubocop cop 2016-05-30 13:53:25 +02:00
runner_project.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
trigger.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
trigger_request.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
variable.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00