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 the Rubocop config #107

Merged
merged 5 commits into from Jul 13, 2016
Merged

Update the Rubocop config #107

merged 5 commits into from Jul 13, 2016

Conversation

lslezak
Copy link
Member

@lslezak lslezak commented Jun 10, 2016

to make it work with Rubocop 0.40.0

to make it work with Rubocop 0.40.0
# Do not check the module length, the YCP converted includes
# are usually too long.
Metrics/ModuleLength:
Enabled: false
Copy link
Member

Choose a reason for hiding this comment

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

this is wrong, we do not do it even for class length or method lenght...It is intentionally undefined, so if you generate rubocop config it adds current value and it try to check that it is not increased.

@jreidinger
Copy link
Member

now it in general looks good, but I think that it deserve some discussion on mailing list about backward compatible ones, so we can decide which way we prefer and maybe we can force now recommended value?

In general I think we should follow upstream guide unless we have good reason to change it. And backward compatibility in style guide is not good reason for me as it can be auto-corrected.

@lslezak
Copy link
Member Author

lslezak commented Jun 20, 2016

OK, makes sense, initially I wanted to change the code as little as possible, but the argument about the upstream compatibility is really strong. I'll update it...

# Allow block.call:
#
# def foo(&block)
# var = block,call
Copy link
Member

Choose a reason for hiding this comment

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

dot instead of comma

@jreidinger
Copy link
Member

LGTM

3.1.42
@lslezak lslezak changed the title [WIP] Update the Rubocop config Update the Rubocop config Jul 13, 2016
@jreidinger
Copy link
Member

LGTM

@lslezak lslezak merged commit 924533b into master Jul 13, 2016
@lslezak lslezak deleted the rubocop_update branch July 13, 2016 14:12
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

3 participants