You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include cfn-python-lint checks into sam validate #933
Currently sam validate only catches a very small subset of problems with SAM templates. For example it doesn't even catch when the AWS::Serverless-2016-10-31 transformation isn't specified in the template. It'd be great if users could be more confident that a template works if it passed sam validate successfully.
Proposal
For better validation cfn-python-lint comes to mind, which already does a great job detecting invalid CloudFormation and SAM templates. It'd be great if the checks done by cfn-python-lint would be included into sam validate as well. As both are implemented in Python it's probably straight forward to add such support.
The idea is not new and has already been suggested by @jfuss in #686 (comment) (and probably others somewhere else). @heitorlessa just suggested in Slack to track it properly with such a feature request. So here it is. 🙂
Reacted by Dave Parr and Dan Banecker
Reacted by Jacob Fuss, Frank van Boven, Mike Fiedler, Keeton Hodgson, Philip M. Gollucci and James Hood
I believe you confuse aws-sam-translator (which is part of the SAM repository) with the SAM CLI. cfn-python-lint depends on aws-sam-translator and so does the SAM CLI. So no circular dependencies, but both rely on aws-sam-translator instead.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Activity
fatbasstard commentedon Jan 21, 2019
Fun thing is that
cfn-python-lintuses SAM for the Transformation. (before linting the template).. If SAM would use the linter, the circle is round 😎Dunedan commentedon Jan 21, 2019
I believe you confuse
aws-sam-translator(which is part of the SAM repository) with the SAM CLI.cfn-python-lintdepends onaws-sam-translatorand so does the SAM CLI. So no circular dependencies, but both rely onaws-sam-translatorinstead.fatbasstard commentedon Jan 21, 2019
Yes, you're completely right... My bad, I got enthousiastic 🎉
sriram-mv commentedon Jan 12, 2023
Released with v1.69.0. Closing this issue.
github-actions commentedon Jan 12, 2023
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.