-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to work with .template #28
Comments
We do look for yaml and json files. From there we try to determine if they are a CloudFormation template. Let me test a few things here. I think I can give you a more definitive solution. |
The quick fix on an individual file is to switch the language of the file. You can more permanently make that change by following this. @cmmeyer Not sure how far down this we should go. There is absolutely a contingent of *.template folks. I'm not sure we could more globally enable *.template as a CloudFormation template that we would then lint. I may have to see if there are some easier options for this. These workarounds above should provide a solution until we can discuss this more. |
I certainly have |
@kddejong Thank you for the comment. It can work now. |
Can we just expose the file mappings as a configuration option? Leave the defaults alone but allow overrides? |
@rjlohan possibly. We could change this to *. https://github.com/awslabs/aws-cfn-lint-visual-studio-code/blob/master/package.json#L19-L22 I think the problem is the .template doesn't associate with a language (unless someone installed a language plugin). We could add the ability to associate to an extension but I would have to look into this... I'm just not sure off the top of my head. The good thing is We could better document this fix as well.
|
I have several *.template file, and all file begin with
AWSTemplateFormatVersion: '2010-09-09'
at first line, but I cannot get any lint on the file.When I click other *.yml file, it will output
Don't believe this is a CloudFormation template.
, it correct, because it really not a cloudformation template, but when I click the cloudformation template *.template file, it doesn't have any output messages.Anyone could help? Should I modify any config?
The text was updated successfully, but these errors were encountered: