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

[ruby] Implicit Require Handling #4484

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

DavidBakerEffendi
Copy link
Collaborator

Autoloading in Ruby is fairly common, however it's important for us to represent these import nodes explicitly.

This pass adds a check for modules with no high-level require calls, to check call receivers and constructor allocations for types from other files, and add explicit require calls for them.

[Autoloading in Ruby](https://www.rubyguides.com/2019/08/autoloading-in-ruby/) is fairly common, however it's important for us to represent these import nodes explicitly.

This pass adds a check for modules with no high-level require calls, to check call receivers and constructor allocations for types from other files, and add explicit require calls for them.
@DavidBakerEffendi DavidBakerEffendi added the ruby Relates to rubysrc2cpg label Apr 23, 2024
@DavidBakerEffendi DavidBakerEffendi self-assigned this Apr 23, 2024
@DavidBakerEffendi
Copy link
Collaborator Author

Some weird build errors related to the citation validation happening. We don't really need this step anymore so if this build passes without it then I'll merge

@DavidBakerEffendi
Copy link
Collaborator Author

Hmm seems sbt is now missing? Weird

@DavidBakerEffendi DavidBakerEffendi force-pushed the dave/ruby/implicit-require-handling branch from 636d1d5 to 79156f3 Compare April 24, 2024 19:30
@max-leuthaeuser
Copy link
Contributor

This PR needs to be merged with master once #4490 is in.

@DavidBakerEffendi DavidBakerEffendi merged commit d46a89d into master Apr 25, 2024
5 checks passed
@DavidBakerEffendi DavidBakerEffendi deleted the dave/ruby/implicit-require-handling branch April 25, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Relates to rubysrc2cpg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants