Skip to content
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

Fix Rubocop performance deprecation warning #5795

Closed
4 tasks
cesswairimu opened this issue May 26, 2019 · 14 comments
Closed
4 tasks

Fix Rubocop performance deprecation warning #5795

cesswairimu opened this issue May 26, 2019 · 14 comments
Labels
first-timers-only They need to be well-formatted using the First-timers_Issue_Template.

Comments

@cesswairimu
Copy link
Collaborator

🤔 What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

📋 Step by Step

  • 🙋 Claim this issue: Comment below. If someone else has claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!

Problem:

Performance cops have been removed from RuboCop 0.68

📝 Update:

Put this in Gemfile.

gem 'rubocop-performance'

Then add this in .rubocop.yml.

require: rubocop-performance

After changing run bundle install

  • 💾 Commit your changes

  • 🔀 Start a Pull Request. There are two ways how you can start a pull request:

  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can also edit files directly in your browser and open a pull request from there.

  • 🏁 Done Ask in comments for a review :)

🤔❓ Questions?

Leave a comment below!

@cesswairimu cesswairimu added the first-timers-only They need to be well-formatted using the First-timers_Issue_Template. label May 26, 2019
@kodyclemens
Copy link

I'd be happy to tackle this issue.

@Beachyesh
Copy link

Hey, I'm a first time user of GitHub and would love to know if I can assist you in any way? @kodyclemens

@kodyclemens
Copy link

@Esh08 Unfortunately I think this issue may have to wait as Codeclimate does not yet support the new gem, which is resulting in failing tests.

@jywarren
Copy link
Member

jywarren commented Jun 3, 2019

Thanks! That's too bad - maybe we can mark the PR with that and then merge it hopefully down the road once it is supported? Thank you for your help!!!

@alaxalves
Copy link
Member

@kodyclemens @jywarren CodeClimate currently only supports rubocop ~> 0.52.0. We had this same issue with mapknitter at publiclab/mapknitter#547

@nstjean
Copy link
Contributor

nstjean commented Oct 2, 2019

Is this needed now? This link says that codeclimate should support rubocop-performance:
codeclimate/codeclimate-rubocop#166

Let me know and I'll create a pull request.

@Lisa-Caton
Copy link

Hi there, I would like to take this issue (as a first-timers-only) :)

@cesswairimu
Copy link
Collaborator Author

@Lisa-Caton go ahead its all yours

@Lisa-Caton
Copy link

great - I'll get started asap! Thanks so much.

@Lisa-Caton
Copy link

I think I am stuck. When I did the pr it looks like my branch isn't passing checks with my submission. https://github.com/publiclab/plots2/pull/6437 I've only added the 2 lines to the code. And when I ran rubocop --require rubocop-performance it ran without errors on my terminal. (92 files inspected, 126 offenses detected) Since I am able to run the working command locally, I'm not sure what to do next.

@cesswairimu
Copy link
Collaborator Author

Hi @Lisa-Caton I will take a look

@Lisa-Caton
Copy link

Thanks!!

@SidharthBansal
Copy link
Member

Is this issue solved? Can we close this?

@jywarren
Copy link
Member

Let's close it! Looks OK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-timers-only They need to be well-formatted using the First-timers_Issue_Template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants