Skip to content

This updates Rubocop and uses the .rubocop_rspec_base.yml for consistency #2556

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

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

petergoldstein
Copy link
Contributor

No description provided.

@@ -7,18 +7,18 @@ module Generators
class ScaffoldGenerator < Base
include ::Rails::Generators::ResourceHelpers
source_paths << File.expand_path('../helper/templates', __dir__)
argument :attributes, type: :array, default: [], banner: "field:type field:type"
argument :attributes, :type => :array, :default => [], :banner => "field:type field:type"
Copy link
Member

Choose a reason for hiding this comment

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

What if we disable the cop that finds hash rocket offensive, and move it to todo?

See previous discussion on RuboCop update and fixes:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So we could move the cop that requires hash rocket out of the common base, and put it in todo for the repos that still need to support older Rubies. That would work. Then we could just revert the hash rocket changes here - this repo was using JSON-style syntax.

Copy link
Member

Choose a reason for hiding this comment

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

What if we keep it in base, but set Enabled: false in todo? Will todo take precedence over base?
That way, base is still common across all repos and intact. And we reduce churn for this PR.

@pirj pirj force-pushed the feature/update_rubocop branch from f067b85 to a24a244 Compare July 26, 2022 21:29
@pirj pirj force-pushed the feature/update_rubocop branch from a24a244 to a994c16 Compare July 26, 2022 21:53
@pirj pirj merged commit 3068131 into rspec:main Jul 26, 2022
@pirj
Copy link
Member

pirj commented Jul 26, 2022

Thank you, @petergoldstein !

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.

2 participants