We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
1.22.0
Linux
cfn-lint considers configuration broken when ignore_templates doesn't match any files
We've added node_modules/** to ignore_templates but now cfn-lint fails since 1.22.0 when this directory doesn't exists / is empty.
node_modules/**
ignore_templates
The error message is non descriptive:
E0003 node_modules/** could not be processed by glob.glob None:1:1
cfn-lint/src/cfnlint/config.py
Lines 799 to 800 in f920591
Seems to be introduced by #3862 / @kddejong
Allow excluding of templates that don't exists.
Use the following .cfnlintrc
.cfnlintrc
regions: - us-east-1 - eu-west-1 templates: - "**/*.yaml" - "**/*.yml" ignore_templates: - "node_modules/**"
The text was updated successfully, but these errors were encountered:
The quick solution is ignore_bad_template but going to leave this open as I am researching a few more things.
ignore_bad_template
regions: - us-east-1 - eu-west-1 templates: - "**/*.yaml" - "**/*.yml" ignore_bad_template: true ignore_templates: - "node_modules/**"
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
CloudFormation Lint Version
1.22.0
What operating system are you using?
Linux
Describe the bug
cfn-lint considers configuration broken when ignore_templates doesn't match any files
We've added
node_modules/**
toignore_templates
but now cfn-lint fails since 1.22.0 when this directory doesn't exists / is empty.The error message is non descriptive:
cfn-lint/src/cfnlint/config.py
Lines 799 to 800 in f920591
Seems to be introduced by #3862 / @kddejong
Expected behavior
Allow excluding of templates that don't exists.
Reproduction template
Use the following
.cfnlintrc
The text was updated successfully, but these errors were encountered: