Skip to content
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 execute linting? #134

Closed
DrStrangepork opened this issue Oct 19, 2020 · 2 comments
Closed

how to execute linting? #134

DrStrangepork opened this issue Oct 19, 2020 · 2 comments

Comments

@DrStrangepork
Copy link

I've installed the latest version of this plugin, and I see nothing at all different about VSCode using CFN templates. I see the cfnLint.* options in my Settings but that's it. I see no new buttons, menus, menu options, linting, formatting, etc. When does linting happen? On save?

I can run a locally-installed version of cfn-lint (brew install cfn-lint), and if I run that manually, it shows me warnings and errors, but whether I configure the cfnLint.path in my settings to the local version or the pip installed version, VSCode shows nothing. I assume I am supposed to see something under Problems?

@DrStrangepork
Copy link
Author

In the Output tab, after selecting "CloudFormation linter Language Server", I see this:

Settings have been updated...
Settings: {"cfnLint":{"enableAutocomplete":true,"validateUsingJsonSchema":true,"path":"/Users/n0304144/.pyenv/shims/cfn-lint","appendRules":[],"ignoreRules":["E1029","E2015","E3008","E3012","W1019","W2506","W2507","W3005"],"overrideSpecPath":""}}
Determined this file is a CloudFormation Template. file:///Users/n0304144/git/SM/secrets-management-caserver/src/main/cloudformation/secrets-management-caserver.json. Found the string AWSTemplateFormatVersion
Running... /Users/n0304144/.pyenv/shims/cfn-lint --format,json,--ignore-checks,E1029,--ignore-checks,E2015,--ignore-checks,E3008,--ignore-checks,E3012,--ignore-checks,W1019,--ignore-checks,W2506,--ignore-checks,W2507,--ignore-checks,W3005,--,"/Users/n0304144/git/SM/secrets-management-caserver/src/main/cloudformation/secrets-management-caserver.json"
child process exited with code 0 and signal null

It appears that this is what I needed. Perhaps I was just never saving a version of my CFN that had issues, so I didn't see anything under Problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants