Home

Awesome

coc-cfn-lint

Coc (coc.nvim) extension for cfn-python-lint.

version license

Requirements

Install

Inside Vim/Neovim, run:

:CocInstall coc-cfn-lint

Features

Configuration

This extension can be configured via these top-level configuration items. Live reload of settings is also supported, which means you can change these settings without needing to reload the file/editor.

SettingDefaultDescription
cfnlint.path"cfn-lint"Path to cfn-lint
cfnlint.lintOnOpentrueEnable linting upon opening a valid CloudFormation JSON/YAML file
cfnlint.lintOnSavetrueEnable linting upon saving a valid CloudFormation JSON/YAML file
cfnlint.detectCfnRegExps[]Array of RegExp strings. If any of these match in a JSON/YAML file, that file will be linted. This can be useful to detect non-standard CloudFormation/SAM templates, as the built-in checks look for a standard CloudFormation/SAM template
cfnlint.ignoreRulesRegExps[]Array of RegExp strings. If any of these match a cfn-lint result message, that result is ignored. This can be useful alongside cfnlint.ignoreRules
cfnlint.awsRegions[]Array of AWS regions to test against. Defaults to all regions. This is useful because certain rules (such as "E3001") check whether resources are supported in the given regions
cfnlint.ignoreBadTemplatefalseIgnore bad template errors
cfnlint.ignoreRules[]Array of rule ID prefixes to ignore (e.g. ["E3", "E1029"])
cfnlint.includeRules[]Array of rule ID prefixes to include. Some checks, such as Informational checks (beginning with "I") are disabled by default, and can be enabled by setting this to ["I"]
cfnlint.customRules[]Array of paths containing additional rules. These can be either directories containing Python file(s), or an import path to a Python module
cfnlint.includeExperimentalRulesfalseWhether to include experimental rules
cfnlint.ruleConfigurations[]Array of rule configurations (e.g. ["E3012:strict=false"]
cfnlint.overrideSpecPathnullPath to a CloudFormation resource specification override file

License

MIT