joenye / coc-cfn-lint

Coc (coc.nvim) extension to lint CloudFormation via cfn-python-lint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linting is being skipped

bobbywlindsey opened this issue · comments

Is there a reason why linting is skipping this json file?

It contains Resources and I even tried adding AWSTemplateFormatVersion as well.

It skips because, by default, the file must contain AWSTemplateFormatVersion and Resources.

Try adding this to your Coc settings:

"cfnlint.detectCfnRegExps": ["\\n?\"Resources\"?\\s*:"],

Awesome, that fixed it!