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

[Fix #8012] Fix incorrect autocorrect for Lint/DeprecatedOpenSSLConstant #8014

Conversation

koic
Copy link
Member

@koic koic commented May 22, 2020

Fixes #8012.

This PR fixes an incorrect autocorrect for Lint/DeprecatedOpenSSLConstant when deprecated OpenSSL constant is used in a block.


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

…SSLConstant`

Fixes rubocop#8012.

This PR fixes an incorrect autocorrect for `Lint/DeprecatedOpenSSLConstant`
when deprecated OpenSSL constant is used in a block.
@tas50
Copy link
Contributor

tas50 commented May 22, 2020

@koic any chance when this gets merged we could get a 0.84.1 release? I'd really like to enable this one for our linting tool, but all the cases I've hit so far are in blocks.

@bbatsov bbatsov merged commit b3e38e6 into rubocop:master May 22, 2020
@bbatsov
Copy link
Collaborator

bbatsov commented May 22, 2020

@tas50 I'll think about this. I might cut a bugfix release if more fixes accumulate over the weekend. In the mean time it's easy to just build the gem straight from GitHub.

@koic koic deleted the fix_incorrect_autocorrect_for_deprecated_open_ssl_constant branch May 23, 2020 01:31
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.

Autocorrect of Lint/DeprecatedOpenSSLConstant breaks code
3 participants