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

Use Rubocop config from voxpupuli-test #667

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 12, 2020

This is still a draft since it depends on voxpupuli/voxpupuli-test#28 and assumes that will be released as version 2.1.0.

RSpec/FilePath:
Enabled: false
inherit_gem:
voxpupuli-test: rubocop.yml
Copy link
Member

Choose a reason for hiding this comment

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

Should we include a inherit_from: .rubocop_todo.yml as well?

Copy link
Member Author

@ekohl ekohl Aug 12, 2020

Choose a reason for hiding this comment

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

None of our modules have this today and if the file doesn't exist, Rubocop hard crashes with No such file or directory. I'd say this file is now trivial enough that if they need a TODO, they can unmanage the file.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, that’s annoying. Since it’s still erb, can It dynamically add the line if the file exists?
I’m thinking it might be useful when we finally drop ruby 1.9 support at the end of the year.

Copy link
Member Author

Choose a reason for hiding this comment

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

Technically yes and the recent support in modulesync does make that easier (since you get a variable for the target directory).

Copy link
Member

Choose a reason for hiding this comment

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

We can always add this later.

@ekohl ekohl marked this pull request as ready for review August 19, 2020 12:19
@ekohl
Copy link
Member Author

ekohl commented Aug 19, 2020

Now that 2.1 has been released, this is ready for review. I'd prefer to leave out the TODO file since that's not really used in our modules and I'd like to avoid encouraging it. That's also a nice way of saying that I'm too lazy to write the code for it ;)

@ekohl ekohl requested a review from alexjfisher August 19, 2020 12:40
@alexjfisher
Copy link
Member

Now that 2.1 has been released, this is ready for review. I'd prefer to leave out the TODO file since that's not really used in our modules and I'd like to avoid encouraging it. That's also a nice way of saying that I'm too lazy to write the code for it ;)

I think it'll be useful when/if we finally bump to much newer versions of rubocop after we drop ruby 1.9 support. But we don't need it right now, so +1 from me.

@ekohl ekohl merged commit ce4a018 into voxpupuli:master Aug 19, 2020
@ekohl ekohl deleted the external-rubocop-config branch August 19, 2020 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants