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

style: use RuboCop 0.41.2, adjust defaults #489

Merged
merged 1 commit into from
Jul 12, 2016

Conversation

UniqMartin
Copy link
Contributor

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes?
  • Have you successfully run brew tests with your changes locally?

Changes to our style configuration:

  • Consolidate all rules related to Ruby 1.8 compatibility in one place.
  • Codify our de-facto preference for alias_method over alias (drops offense count by 54 after turning this on).
  • Drop Style/SignalException as only_raise has been the new default for quite a while (since RuboCop 0.37.0).

Changes to our style configuration:

- Consolidate all rules related to Ruby 1.8 compatibility in one place.
- Codify our de-facto preference for `alias_method` over `alias` (drops
  offense count by 54 after turning this on).
- Drop `Style/SignalException` as `only_raise` has been the new default
  for quite a while (since RuboCop 0.37.0).
@UniqMartin UniqMartin added the in progress Maintainers are working on this label Jul 10, 2016
@@ -3,9 +3,13 @@ AllCops:
- 'Homebrew/vendor/**/*'
- 'Homebrew/test/vendor/**/*'

# 1.8-style hash keys
# Ruby 1.8 compatibility
Copy link
Member

Choose a reason for hiding this comment

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

Maybe put all these last in the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have a strong preference. It felt nice to “reuse” this comment and to keep it at the top as a constant reminder for every reader of this file that we're still stuck with Ruby 1.8 (until this is no longer the case).

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I see now it's right at the top. Seems fine 👍

@MikeMcQuaid
Copy link
Member

👍

1 similar comment
@DomT4
Copy link
Contributor

DomT4 commented Jul 11, 2016

👍

@UniqMartin UniqMartin merged commit 768ba34 into Homebrew:master Jul 12, 2016
@UniqMartin UniqMartin removed the in progress Maintainers are working on this label Jul 12, 2016
@UniqMartin UniqMartin deleted the rubocop-0.41.2 branch July 12, 2016 05:50
@UniqMartin UniqMartin mentioned this pull request Jul 12, 2016
5 tasks
souvik1997 pushed a commit to souvik1997/brew that referenced this pull request Jul 25, 2016
Changes to our style configuration:

- Consolidate all rules related to Ruby 1.8 compatibility in one place.
- Codify our de-facto preference for `alias_method` over `alias` (drops
  offense count by 54 after turning this on).
- Drop `Style/SignalException` as `only_raise` has been the new default
  for quite a while (since RuboCop 0.37.0).
@Homebrew Homebrew locked and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants