Skip to content

Conversation

@koic
Copy link
Member

@koic koic commented Sep 26, 2025

This PR fixes an incorrect autocorrect for Lint/DeprecatedOpenSSLConstant when using twice Cipher constant.

Fixes #14563.


Before submitting the PR make sure the following are checked:

  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • 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.
  • Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
  • Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

…OpenSSLConstant`

This PR fixes an incorrect autocorrect for `Lint/DeprecatedOpenSSLConstant`
when using twice `Cipher` constant.

Fixes rubocop#14563.
@koic koic force-pushed the fix_an_incorrect_autocorrect_for_lint_deprecated_open_ssl_constant branch from 23c0667 to 42ff7a4 Compare September 26, 2025 07:12
@Earlopain
Copy link
Contributor

Can you update documentation? This constant has actually been deprecated nine years ago (https://github.com/ruby/openssl/blame/4b923b470e3b1e18d23fc43e46804ede0d97bc83/lib/openssl/cipher.rb#L60-L65) but I don't think it was the intention of the cop initially to catch this (hence no docs)

@bbatsov bbatsov merged commit 6b2f047 into rubocop:master Sep 26, 2025
22 checks passed
@koic koic deleted the fix_an_incorrect_autocorrect_for_lint_deprecated_open_ssl_constant branch September 26, 2025 14:28
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.

Lint/DeprecatedOpenSSLConstant: Typo in autocrrect "cip-her-aes"

3 participants