jish / pre-commit

A slightly improved pre-commit hook for git
https://jish.github.io/pre-commit/
Other
796 stars 96 forks source link

Warning on your own configuration file #197

Closed nolanpro closed 8 years ago

nolanpro commented 9 years ago
Warning: Skipping 'config/pre_commit.yml' because it contains serialized ruby objects.

YAML.safe_load does not support symbols. Your call to YAML.safe_load should allow them, like this:

YAML.safe_load(File.read(file), [Symbol], [], true, file)