mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
fix test file
This commit is contained in:
@@ -121,7 +121,7 @@ class UsersController < ActionController::Base
|
||||
def route16
|
||||
yaml_data = params[:key]
|
||||
object = Psych.load yaml_data
|
||||
object = Psych.load_file yaml_data2
|
||||
object = Psych.load_file yaml_data
|
||||
end
|
||||
|
||||
# GOOD
|
||||
@@ -135,25 +135,25 @@ class UsersController < ActionController::Base
|
||||
# BAD
|
||||
def route18
|
||||
yaml_data = params[:key]
|
||||
object = Psych.unsafe_load(plist_data)
|
||||
object = Psych.unsafe_load_file(plist_data)
|
||||
object = Psych.load_stream(plist_data)
|
||||
parse_output = Psych.parse_stream(plist_data)
|
||||
object = Psych.unsafe_load(yaml_data)
|
||||
object = Psych.unsafe_load_file(yaml_data)
|
||||
object = Psych.load_stream(yaml_data)
|
||||
parse_output = Psych.parse_stream(yaml_data)
|
||||
object = parse_output.to_ruby
|
||||
object = Psych.parse(plist_data).to_ruby
|
||||
object = Psych.parse_file(plist_data).to_ruby
|
||||
parsed_yaml = Psych.parse_stream(plist_data)
|
||||
object = Psych.parse(yaml_data).to_ruby
|
||||
object = Psych.parse_file(yaml_data).to_ruby
|
||||
parsed_yaml = Psych.parse_stream(yaml_data)
|
||||
parsed_yaml.children.each do |child|
|
||||
object = child.to_ruby
|
||||
end
|
||||
Psych.parse_stream(plist_data) do |document|
|
||||
Psych.parse_stream(yaml_data) do |document|
|
||||
object = document.to_ruby
|
||||
end
|
||||
object = parsed_yaml.children.first.to_ruby
|
||||
content = parsed_yaml.children[0].children[0].children
|
||||
object = parsed_yaml.to_ruby[0]
|
||||
object = content.to_ruby[0]
|
||||
object = Psych.parse(plist_data).children[0].to_ruby
|
||||
object = Psych.parse(yaml_data).children[0].to_ruby
|
||||
end
|
||||
|
||||
# BAD
|
||||
|
||||
Reference in New Issue
Block a user