question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scans all yaml files with cfn-lint at startup.

See original GitHub issue

Issue Type: Bug

I have a couple of hundred cloudformation templates and serverless templates in my default workspace.

Every time I start or reload vscode it scans all the yaml files with cfn-lint.

It pushes to load average up to approx 200, until the WSL stops responding and disconnects. Then reconnecting it does it again. Rinse, repeat.

I’ve had to start running

pkill -f cfn-lint

multiple times in a terminal session when vscode or my machine reloads to keep it under control.

Is there a way to add a setting, to only lint files on open, rather than scan the whole workspace on load?

Extension version: 0.20.0 VS Code version: Code - Insiders 1.61.0-insider (aec6ee09fa1021cb59c7f4f4d000b027febc967d, 2021-09-03T05:14:10.486Z) OS version: Windows_NT x64 10.0.22000 Restricted Mode: No Remote OS version: Linux x64 5.10.43.3-microsoft-standard-WSL2

System Info
Item Value
CPUs AMD Ryzen 9 3900X 12-Core Processor (24 x 3793)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.94GB (40.65GB free)
Process Argv –crash-reporter-id d84130c3-89a0-47ae-a4ce-aa1e8a9d5382
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu-20.04
OS Linux x64 5.10.43.3-microsoft-standard-WSL2
CPUs AMD Ryzen 9 3900X 12-Core Processor (24 x 3792)
Memory (System) 31.33GB (28.20GB free)
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
vshan820:30294714
pythonvsuse255:30319630
3f5j7703:30294757
vscod805cf:30301675
vsccppwtct:30312693
bridge0708:30335490
pygetstartedt2:30353727
dockerwalkthru:30348713
bridge0723:30353136
javagetstartedt:30350119
pydsgst2:30361790

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
b3cftcommented, Sep 8, 2021

No, I don’t have .cfnlintrc file in the workspace or my home dir.

0reactions
kddejongcommented, Sep 26, 2022

I may have to add some debugging output to get more details but can you provide me the abbreviated Output from the plugin? We should see the execution for every file that was opened or saved. We should only see executions for the files that are open.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · aws-cloudformation/cfn-lint-visual-studio-code - GitHub
Scans all yaml files with cfn-lint at startup. #198 opened on Sep 3, 2021 by b3cft.
Read more >
CFN Lint: AWS CloudFormation Linter - Morioh
AWS CloudFormation Linter, Validate AWS CloudFormation yaml/json templates against the ... Lint all yaml files in path and all subdirectories (recursive):.
Read more >
With pre-commit hook getting "E0000 Template needs to be ...
This would explain the error message. The solution: only include files in your cfn-python-lint scan that are actually CloudFormation files.
Read more >
SAST Scanning of IAC tools(Infrastructure as code ... - GitLab
We are looking for a way to perform SAST Scan(and other type scan ... have many solutions integrated with pure GitLab CI Yaml...
Read more >
With cfn-lint - Serverless Rules
If the template fulfills the requirements for all rules, cfn-lint will return an empty ... templates as JSON files starting with cloudformation-template- ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found