Closed kamilturek closed 2 months ago
I think this is because how parameters are created when doing the pre-commit.
args:
- --ignore-checks
- W3002
- --format
- pretty
or
args:
- --format
- pretty
This seems to be related to adding this to the end
- --ignore-checks
- W3002
Looks like there is workaround to add one mroe item:
args:
- --format
- pretty
- --ignore-checks
- W3002
- --template
but I also added a PR to fix this issue as it is an issue when doing a pipe of the template. This should also fix your issue but it may depend on how pre-commit is building the parameters.
CloudFormation Lint Version
1.10.3
What operating system are you using?
Mac
Describe the bug
When running
cfn-lint
as a pre-commit hook:Expected behavior
Do not crash
Reproduction template