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

Fix a false positive for Security/YamlLoad #10424

Merged

Commits on Feb 17, 2022

  1. Fix a false positive for Security/YamlLoad

    This PR fixes a false positive for `Security/YamlLoad`
    when using Ruby 3.1+ (Psych 4).
    And it also makes the examples a bit more specific.
    
    Ruby 3.1+ (Psych 4) uses `Psych.load` as `Psych.safe_load` by default.
    ruby/psych#487
    
    We may consider removing this cop in the future, but not yet.
    koic committed Feb 17, 2022
    Copy the full SHA
    0a8ad1b View commit details
    Browse the repository at this point in the history