-
Notifications
You must be signed in to change notification settings - Fork 732
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
False positive dangerous send case when #1730
Comments
I suspect Brakeman just isn't handling the splat case right now. If you change the code to
It will not produce a warning. If that's the case, then this should be fixable in Brakeman. |
I've added it to the ignore file tbh Thanks for the reply |
🔥 |
Repository owner
locked and limited conversation to collaborators
May 9, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Background
Rails Version: 7.0.3.1
Brakeman Version: 5.3.1
ruby version: ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-darwin20]
I'm using a
case;when
with predefined values to make sure the value is matching a specific finite list of values.Then using a
send
(tried with public_send and send) but brakeman is not happy with that.I'm not sure if:
Issue
False positive dangerous send:
My code:
Other Error
Run Brakeman with
--debug
to see the full stack trace.Stack trace:
trace:
The text was updated successfully, but these errors were encountered: