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

Enable Style/Encoding cop #94

Merged
merged 1 commit into from Jul 14, 2020
Merged

Enable Style/Encoding cop #94

merged 1 commit into from Jul 14, 2020

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Jul 14, 2020

The encoding cop was previously disabled as it added the encoding comments. Now it removes them if they were setting utf-8 since that's the default on Ruby 2 and is totally pointless to set.

This also enables the frozen string literal comment cop for this repo so we can start the process of getting ready to enable that.

Signed-off-by: Tim Smith tsmith@chef.io

@tas50 tas50 requested review from a team as code owners July 14, 2020 19:48
The encoding cop was previously disabled as it *added* the encoding comments. Now it removes them if they were setting utf-8 since that's the default on Ruby 2 and is totally pointless to set.

This also enables the frozen string literal comment cop for this repo so
we can start the process of getting ready to enable that.

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 changed the title Enable FrozenStringLiteralComment and FrozenStringLiteralComment Enable Style/Encoding cop Jul 14, 2020
@tas50 tas50 merged commit e82027e into master Jul 14, 2020
@chef-expeditor chef-expeditor bot deleted the new_cops branch July 14, 2020 21:42
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