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

Add RuboCop Migrations #74

Merged

Conversation

magec
Copy link
Contributor

@magec magec commented Sep 26, 2016

Hi!

We want to start using a new rubocop extension we developed (https://rubygems.org/gems/rubocop-migrations). It is a simple gem that disallows index removal from rails migrations (so you don't accidentally remove an index that is being used).

Given that we use codeclimate, it would be nice to be able to use that there.

@ivanilves
Copy link

👍

1 similar comment
@enricostano
Copy link

👍

@dblandin
Copy link
Contributor

dblandin commented Oct 3, 2016

Hey @magec,

This looks good to me. You might want to also adjust the category mapping, otherwise this cop will emit Style issues which doesn't seem appropriate. You can see all supported categories here. Maybe Performance would make sense?

@magec
Copy link
Contributor Author

magec commented Oct 4, 2016

Thanks for reviewing @dblandin !

Added the category.

@dblandin dblandin merged commit 99ca869 into codeclimate:master Oct 4, 2016
@dblandin
Copy link
Contributor

dblandin commented Oct 4, 2016

Hey @magec,

Just wanted to follow-up and let you know that I've released an engine update the includes the new rubocop plugin.

Let me know if you run into any issues!

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants