Using the example described in the documentation ...
- id: packer-validate
files: packer*.json
suggests a glob style naming approach.
This results in the warnings ...
[WARNING] The 'files' field in hook 'packer-validate' is a regex, not a glob -- matching '/*' probably isn't what you want here
[WARNING] The 'files' field in hook 'packer-fix' is a regex, not a glob -- matching '/*' probably isn't what you want here
[WARNING] The 'files' field in hook 'packer-validate-and-fix' is a regex, not a glob -- matching '/*' probably isn't what you want here
To run as expected.
Current Behavior
Generates warnings.
Steps to Reproduce
Use the files filter as documented.
- repo: https://github.com/operatehappy/pre-commit-packer
rev: 1.0.0
hooks:
- id: packer-validate
files: packer/*.json
- id: packer-fix
files: packer/*.json
- id: packer-validate-and-fix
files: packer/*.json
Environment
1.) Output of pre-commit --version
$ pre-commit --version
pre-commit 2.9.3
Using the example described in the documentation ...
suggests a
globstyle naming approach.This results in the warnings ...
To run as expected.
Current Behavior
Generates warnings.
Steps to Reproduce
Use the files filter as documented.
Environment
1.) Output of
pre-commit --version