Closed arrancscott closed 8 years ago
Adding warnings using the syntax - git config pre-commit.warnings 'rubocop, jshint' and then running pre-commit list returns the following error:
git config pre-commit.warnings 'rubocop, jshint'
pre-commit list
/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.
git config pre-commit.warnings '[rubocop, jshint]'
could you please open a pull request for documentation => https://github.com/jish/pre-commit#enabling--disabling-checks--warnings
Can this be closed now?
Looks like it. Thanks. :)
Adding warnings using the syntax -
git config pre-commit.warnings 'rubocop, jshint'
and then runningpre-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.