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 ruby deprecation warning #69

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

wendy-clio
Copy link
Contributor

@wendy-clio wendy-clio commented Jun 7, 2024

Enable ruby deprecation warning to find any codes that need refactoring before upgrading to ruby 3.

This PR is only for triggering the ci and inspecting the tests log for deprecation warnings, not for merge.

@wendy-clio wendy-clio requested review from a team as code owners June 7, 2024 13:43
@wendy-clio wendy-clio force-pushed the enable_deprecated_warning branch 3 times, most recently from 166cf58 to a668f49 Compare June 7, 2024 13:52
@wendy-clio wendy-clio mentioned this pull request Jun 7, 2024
@wendy-clio wendy-clio marked this pull request as draft June 7, 2024 17:19
@@ -22,6 +22,7 @@
require 'jit_preloader/preloader'

module JitPreloader
Warning[:deprecated] = true
Copy link
Member

Choose a reason for hiding this comment

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

This looks like it will set Warning[:deprecated] true when this file gets parsed. Is that what we want? Shouldn't we be isolating this to the specs for this gem, putting that line in the spec_helper.rb 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.

The point of this PR is to enable deprecated warnings with CI run so they can be fixed. However, the PR does not intend to be merged, so I think it matters little where I put it as long as it enables the warnings properly.

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