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

Switch to using cookstyle #565

Merged
merged 1 commit into from Oct 29, 2018

Conversation

jeffbyrnes
Copy link
Contributor

Maintain the current style choices, but does away with a lot of unnecessary rule bending/exclusion.

Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

Thanks @jeffbyrnes for this, makes perfect sense 👍

The Travis build seems to be failing (https://travis-ci.org/DataDog/chef-datadog/builds/439759521), would you happen to know why? (may be related to the old version of chefDK that we use there, and which only provides rubocop 0.49.1)

@olivielpeau olivielpeau added this to the Triage milestone Oct 29, 2018
Maintain the current style choices, but does away with a lot of
unnecessary rule bending/exclusion.

Maintains backwards-compatible w/ ChefDK v2.x w/ the
Style/TrailingCommaInLiteral rule. However, this rule breaks newer
configurations, so it should eventually be removed.
@jeffbyrnes
Copy link
Contributor Author

@olivielpeau that is exactly what’s happening; turns out this rule was broken into two separate rules. I’ve added the old rule in, and updated the commit message to point out that having it in breaks running on newer versions of RuboCop/cookstyle:

Error: The `Style/TrailingCommaInLiteral` cop no longer exists. Please use `Style/TrailingCommaInArrayLiteral` and/or `Style/TrailingCommaInHashLiteral` instead.
(obsolete configuration found in .rubocop.yml, please update it)
Phase failed with exit code (2)!

@olivielpeau
Copy link
Member

Awesome, thanks for the quick fix! Merging this 👍

@olivielpeau olivielpeau modified the milestones: Triage, 2.17.0 Oct 29, 2018
@olivielpeau olivielpeau merged commit d607fc9 into DataDog:master Oct 29, 2018
@jeffbyrnes jeffbyrnes deleted the switch-to-cookstyle branch October 29, 2018 19:54
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