-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update require
statement in README
#40
Update require
statement in README
#40
Conversation
Adding `require: rubocop-performance` on top of your rubocop yml will throw an exception: ``` Error running RuboCop Error: cannot load such file -- rubocop-performance ../2.5.0/rubygems/core_ext/kernel_require.rb:54:in require ``` The solution is to nest it under `AllCops`, the [docs](https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md#includingexcluding-files) actually suggest that. Keys like `Include`/`Exclude` are all capitalized, so why not capitalize `require` as well?
I think that the README is correct as it is used in the RuboCop Core config. Is Earlier RuboCop Performance 1.1.0 was released. Can you try it after running |
Using RuboCop Performance v 1.1.0 I too get Regardless of capitalisation, when I have
nested in AllCops then I see
But it does successfully run through my CI. That doesn't feel like the most elegant solution to the problem as the same result can be achieved by just not adding the required line to the rubocop.yml and then my CI runs through fine - also works fine with a manual Does this even need to be add to the yml at all? |
Thank you for your fast reply and the links, koic! This is the error in the Atom-console:
-> Before I only Yes, it is inside the
the .lock file:
Upgraded to |
RuboCop core has Performance cops until RuboCop 0.67.2. It will be removed in the next release RuboCop 0.68. RuboCop 0.67 series are the transition period. So RuboCop 0.67.2 works without
I'm not familiar with it because I'm not using Atom editor... The following issue can be a hint? |
Thank you very much for your help! 🙂 So one should remove the require statement for 0.67.2, when 0.68 is released, add it back, if the Atom-linter is still failing, that seems to be a problem of the RuboCop-linter plugin of Atom and has to be fixed there, if I understand the discussion from your last link correctly. |
Adding
require: rubocop-performance
on top of your rubocop yml will throw an exception:The solution is to nest it under
AllCops
, the docs actually suggest that. Keys likeInclude
/Exclude
are all capitalized, so why not capitalizerequire
as well?I guess, there is no need to bump the version for this? (-:
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).and description in grammatically correct, complete sentences.
bundle exec rake default
. It executes all tests and RuboCop for itself and generates the documentation.from the CI: