jish / pre-commit

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

Adding warnings raises PreCommit::NotAnArray error #199

Closed arrancscott closed 8 years ago

arrancscott commented 9 years ago

Adding warnings using the syntax - git config pre-commit.warnings 'rubocop, jshint' and then running pre-commit list returns the following error:

/Library/Ruby/Gems/2.0.0/gems/pre-commit-0.22.1/lib/pre-commit/configuration.rb:23:in 'get_arr': PreCommit::NotAnArray (PreCommit::NotAnArray)

If you add them using the following syntax - git config pre-commit.warnings '[rubocop, jshint]' it works.

mpapis commented 9 years ago

could you please open a pull request for documentation => https://github.com/jish/pre-commit#enabling--disabling-checks--warnings

arrancscott commented 8 years ago

Can this be closed now?

jish commented 8 years ago

Looks like it. Thanks. :)