We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2b6761 + b683be5 commit f2b5f58Copy full SHA for f2b5f58
test/config_test.rb
@@ -75,8 +75,7 @@ def test_config_is_sorted_alphabetically
75
def test_no_cops_are_configured_as_pending
76
pending_cops = []
77
78
- load_method = YAML.respond_to?(:unsafe_load_file) ? :unsafe_load_file : :load_file
79
- YAML.public_send(load_method, FULL_CONFIG_PATH).each do |cop_name, cop_config|
+ YAML.unsafe_load_file(FULL_CONFIG_PATH).each do |cop_name, cop_config|
80
pending_cops << cop_name if Hash === cop_config && cop_config["Enabled"] == "pending"
81
end
82
0 commit comments