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

Parsing Error on splat operator #1833

Open
ryochin opened this issue Mar 13, 2024 · 0 comments
Open

Parsing Error on splat operator #1833

ryochin opened this issue Mar 13, 2024 · 0 comments

Comments

@ryochin
Copy link

ryochin commented Mar 13, 2024

Background

Brakeman version: 6.1.2
Rails version: 7.1.3.2
Ruby version: 3.2.2

Parse Error

Minimal example that does not parse:

*param = [[]]

My real code in Rails:

level, template, *param = ['debug', args[0], []]

Error

/usr/local/bundle/gems/brakeman-6.1.2/lib/brakeman/processors/alias_processor.rb:693:in `block in process_masgn': Expected attrasgn or safe_attrasgn or gasgn or iasgn or lasgn or cvdecl or cvasgn or cdecl or or or and or colon2 or op_asgn_or but given s(:splat, s(:lasgn, :param)) (WrongSexpError)

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

No branches or pull requests

1 participant