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

Fixes #21446 - adjust to rubocop v0.51.0 #116

Merged
merged 1 commit into from
Oct 26, 2017

Conversation

swapab
Copy link
Member

@swapab swapab commented Oct 25, 2017

No description provided.

@swapab swapab requested a review from iNecas October 25, 2017 06:51
@@ -1,4 +1,3 @@
require 'thread'
Copy link
Member

Choose a reason for hiding this comment

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

Still required for ruby 1.8.7

Copy link
Member Author

Choose a reason for hiding this comment

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

Disabled Lint/UnneededRequireStatement: in .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.

What about disabling it just here, with a comment on why?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I tried that actually but rubocop is complaining about it saying Unnecessary disabling of Lint/UnneededRequireStatement

Offenses:
lib/foreman_maintain/reporter/cli_reporter.rb:1:18: W: Unnecessary disabling of Lint/UnneededRequireStatement.
require 'thread' # rubocop:disable Lint/UnneededRequireStatement
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157 files inspected, 1 offense detected
RuboCop failed!

https://travis-ci.org/theforeman/foreman_maintain/jobs/293000847
https://travis-ci.org/theforeman/foreman_maintain/jobs/293001743

Copy link
Member Author

Choose a reason for hiding this comment

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

Have reported this to rubocop/rubocop#4940

@iNecas
Copy link
Member

iNecas commented Oct 26, 2017

Ok, int that case, let's disable it globally for now, until the issue gets resolved in rubocop

@iNecas iNecas merged commit 5c130a7 into theforeman:master Oct 26, 2017
@iNecas
Copy link
Member

iNecas commented Oct 26, 2017

Thanks @swapab

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.

None yet

2 participants