Closed mrrusof closed 6 years ago
Thanks, that's a good enhancement. Also, thanks for reviewing all those cops. I haven't had the need to push for some time and the configuration is so that it takes new versions of the analyzers to keep the project sync with newest accepted good practices.
Merged and released in version 0.2.0.
Thanks for the quick review.
Parsing the following file
example.md
raises aPsych::DisallowedClass
exception.The reason is that the default loader uses
YAML.safe_load
w/o passing a whitelist of classes for values. WhenYAML.safe_load
tries to load the timestamp, it tries to create an instance ofTime
butTime
is not whitelisted and thus it raises an exception.This PR fixes the problem by allowing the user to create a loader with a given class whitelist.