Cfn-python-lint: Exclude file from recursive search

Created on 28 Dec 2018  路  4Comments  路  Source: aws-cloudformation/cfn-python-lint

cfn-lint version: v0.10.2

I have plenty of CF template files in iac folder. I would like them to be recursively linting:

templates:
- iac/CloudFormation/**/*.yaml

But I would like also to ignore some files from directory. Do you support something like:

ignore-templates:
- iac/CloudFormation/notCfTempl.yaml
enhancement

All 4 comments

@Sergei-Rudenkov Quick question... The file you want to exclude, are that JSON/YAML file that are no CloudFormation files? Or also (valid) CloudFormation files that you'd like to exclude from the list?

@fatbasstard The first option. I would like to exclude JSON/YAML file that are no CloudFormation files.

A second vote for this. Particularly frustrating that I can't exclude my buildspec.yml (for AWS CodeBuild) so that I can run from the root directory of my repository. It can be avoided by specifying and retaining all CloudFormation files in a particular directory. Would be a nice enhancement to see for an otherwise great little tool!

Released with v0.16.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kddejong picture kddejong  路  3Comments

Sergei-Rudenkov picture Sergei-Rudenkov  路  5Comments

ashemedai picture ashemedai  路  4Comments

ow-krioles picture ow-krioles  路  5Comments

AlessandroLorenzi picture AlessandroLorenzi  路  3Comments