We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Brakeman version: 7.0.0 Rails version: 7.1 Ruby version: 3.3?
["good", "fine"].each do |suffix| class_eval <<-METHODS def method_that_is_#{suffix} puts suffix end METHODS end
yields
Confidence: Weak Category: Dangerous Eval Check: Evaluation Message: Dynamic string evaluated as code Code: class_eval(" def method_that_is_#{:BRAKEMAN_SAFE_LITERAL}\n puts suffix\n end\n") File: app/models/myfile.rb Line: 95
It looks like that's meant to be known safe. Used to list as safe.
The text was updated successfully, but these errors were encountered:
There was some discussion on the PR that made this change #1899
Sorry, something went wrong.
Avoid warning of eval of plain strings
c31f87e
Fixes #1919
a7bbe80
No branches or pull requests
Background
Brakeman version: 7.0.0
Rails version: 7.1
Ruby version: 3.3?
Issue
yields
It looks like that's meant to be known safe. Used to list as safe.
The text was updated successfully, but these errors were encountered: