cfn-python-lint | CloudFormation Linter | AWS library

 by   aws-cloudformation Python Version: v0.48.3 License: Non-SPDX

kandi X-RAY | cfn-python-lint Summary

kandi X-RAY | cfn-python-lint Summary

cfn-python-lint is a Python library typically used in Cloud, AWS applications. cfn-python-lint has no bugs, it has no vulnerabilities, it has build file available and it has medium support. However cfn-python-lint has a Non-SPDX License. You can install using 'pip install cfn-python-lint' or download it from GitHub, PyPI.

Validate AWS CloudFormation yaml/json templates against the AWS CloudFormation Resource Specification and additional checks. Includes checking valid values for resource properties and best practices.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              cfn-python-lint has a medium active ecosystem.
              It has 1506 star(s) with 329 fork(s). There are 47 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 73 open issues and 624 have been closed. On average issues are closed in 57 days. There are 11 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of cfn-python-lint is v0.48.3

            kandi-Quality Quality

              cfn-python-lint has 0 bugs and 0 code smells.

            kandi-Security Security

              cfn-python-lint has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              cfn-python-lint code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              cfn-python-lint has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              cfn-python-lint releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 46895 lines of code, 1368 functions and 703 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cfn-python-lint
            Get all kandi verified functions for this library.

            cfn-python-lint Key Features

            No Key Features are available at this moment for cfn-python-lint.

            cfn-python-lint Examples and Code Snippets

            No Code Snippets are available at this moment for cfn-python-lint.

            Community Discussions

            QUESTION

            With pre-commit hook getting "E0000 Template needs to be an object."
            Asked 2021-Aug-06 at 09:41

            cfn-lint version: 0.53.0

            Description of issue.

            I have following setup on my Ubuntu machine

            1. cfn-lint
            2. cfn-python-lint via pre-commit

            Case 1: If I run cfn-lint ./**/*.yml from terminal at the project root folder then there are no errors

            Case 2: If I now try to git commit the code with pre-commit installed, it gives the following error "E0000 Template needs to be an object." for the parameters JSON file.

            The parameter JSON looks something like this:

            ...

            ANSWER

            Answered 2021-Aug-06 at 09:41

            In Case 1, you are only matching files with a *.yml extension and not a JSON extension. However, in Case 2, being your pre-commit hook, you do include json files as well. Meaning it will probably try to interpret your parameters JSON file as a CloudFormation file.

            Your parameters file isn't CloudFormation however, it is a simple JSON array containing some values. A CloudFormation file is always an object, never an array at the top level. This would explain the error message. The solution: only include files in your cfn-python-lint scan that are actually CloudFormation files.

            Source https://stackoverflow.com/questions/68664454

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install cfn-python-lint

            Python 2.7+ and 3.4+ are supported.
            There are getting started guides available in the documentation section to help with integrating cfn-lint or creating rules.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/aws-cloudformation/cfn-python-lint.git

          • CLI

            gh repo clone aws-cloudformation/cfn-python-lint

          • sshUrl

            git@github.com:aws-cloudformation/cfn-python-lint.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular AWS Libraries

            localstack

            by localstack

            og-aws

            by open-guides

            aws-cli

            by aws

            awesome-aws

            by donnemartin

            amplify-js

            by aws-amplify

            Try Top Libraries by aws-cloudformation

            cfn-lint

            by aws-cloudformationPython

            cloudformation-guard

            by aws-cloudformationRust

            rain

            by aws-cloudformationGo

            custom-resource-helper

            by aws-cloudformationPython

            cloudformation-cli

            by aws-cloudformationPython