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

Update to rubocop 0.76 #163

Merged
merged 18 commits into from Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions rubocop-airbnb/config/rubocop-airbnb.yml
Expand Up @@ -2,11 +2,6 @@
# They are custom built for use inside Airbnb and address issues that we have experienced in
# testing and production.

Airbnb/ClassName:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably delete class_name.rb and class_name_spec.rb now that we're using Rubocop's ReflectionClassName cop instead.

Description: Use :class_name => "Model" instead of :class_name => Model.name
to avoid a long cascade of autoloading.
Enabled: true

Airbnb/ClassOrModuleDeclaredInWrongFile:
Description: Declare a class or module in the file that matches its namespace and name.
Enabled: true
Expand Down
3 changes: 3 additions & 0 deletions rubocop-airbnb/config/rubocop-rails.yml
Expand Up @@ -209,3 +209,6 @@ Rails/Validation:

Rails/IgnoredSkipActionFilterOption:
Enabled: true

Rails/ReflectionClassName:
Enabled: true
47 changes: 0 additions & 47 deletions rubocop-airbnb/lib/rubocop/cop/airbnb/class_name.rb

This file was deleted.

78 changes: 0 additions & 78 deletions rubocop-airbnb/spec/rubocop/cop/airbnb/class_name_spec.rb

This file was deleted.