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] Grouped facter Bug Fixes #4585

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

DavidBakerEffendi
Copy link
Collaborator

The facter repository causes this frontend to throw a lot of warnings. This PR fixes much of the low-hanging fruit, and improves the warning techniques to help make the warnings more meaningful. There are still, however, quite a few syntax errors to handle from this repository.

  • Handles regexes generated from string formating.
  • Handled the !~ regex not match function. Long term any unrecognized functions are interpreted as calls.
  • Added more cases for implicit returns

The [`facter`](https://github.com/puppetlabs/facter) repository causes this frontend to throw a lot of warnings. This PR fixes much of the low-hanging fruit, and improves the warning techniques to help make the warnings more meaningful. There are still, however, quite a few syntax errors to handle from this repository.

* Handles regexes generated from string formating.
* Handled the `!~` regex not match function. Long term any unrecognized functions are interpreted as calls.
* Added more cases for implicit returns
@DavidBakerEffendi DavidBakerEffendi added the ruby Relates to rubysrc2cpg label May 22, 2024
@DavidBakerEffendi DavidBakerEffendi self-assigned this May 22, 2024
@AndreiDreyer AndreiDreyer merged commit 29740f9 into master May 23, 2024
5 checks passed
@max-leuthaeuser max-leuthaeuser deleted the dave/ruby/facter-fixes branch May 23, 2024 05:50
@DavidBakerEffendi DavidBakerEffendi linked an issue May 23, 2024 that may be closed by this pull request
karan-batavia pushed a commit to Privado-Inc/joern that referenced this pull request Jun 18, 2024
The [`facter`](https://github.com/puppetlabs/facter) repository causes this frontend to throw a lot of warnings. This PR fixes much of the low-hanging fruit, and improves the warning techniques to help make the warnings more meaningful. There are still, however, quite a few syntax errors to handle from this repository.

* Handles regexes generated from string formating.
* Handled the `!~` regex not match function. Long term any unrecognized functions are interpreted as calls.
* Added more cases for implicit returns
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
2 participants