Rubocop: Requiring both rubocop-rails and rubocop-performance in rubocop.yml throws warning

Created on 3 Jun 2019  路  2Comments  路  Source: rubocop-hq/rubocop


Expected behavior

When requiring both rubocop-rails and rubocop-performance no warnings are thrown

Actual behavior

When running rubocop a warning is thrown .rubocop.yml:2: require is concealed by line 3

Steps to reproduce the problem

If you require both rubocop-rails and rubocop-performance in .rubocop.yml like this

require: rubocop-rails
require: rubocop-performance

It will throw a warning .rubocop.yml:2: require is concealed by line 3

RuboCop version

0.71.0

$ [bundle exec] rubocop -V
0.71.0 (using Parser 2.6.3.0, running on ruby 2.5.5 x86_64-linux)

Not sure if we should ignore the warning or update the config_loader.rb to ignore the require field on the .rubocop.yml

Most helpful comment

Please use the YAML's array notation.

require: 
  - rubocop-performance
  - rubocop-rails

https://github.com/rubocop-hq/rubocop/blob/v0.71.0/.rubocop.yml#L4-L7

All 2 comments

Please use the YAML's array notation.

require: 
  - rubocop-performance
  - rubocop-rails

https://github.com/rubocop-hq/rubocop/blob/v0.71.0/.rubocop.yml#L4-L7

oh right sorry, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deivid-rodriguez picture deivid-rodriguez  路  3Comments

lepieru picture lepieru  路  3Comments

millisami picture millisami  路  3Comments

mikegee picture mikegee  路  3Comments

herwinw picture herwinw  路  3Comments