Lightning-Flow-Scanner / lightning-flow-scanner-vsce

A VSCode Extension designed to pinpoint deviations from Industry Best Practices in Salesforce Flows, ensuring standards of business automation excellence.
https://marketplace.visualstudio.com/items?itemName=ForceConfigControl.lightningflowscanner
GNU Affero General Public License v3.0
29 stars 1 forks source link

Unable to scan entire project with scan command #58

Closed pozil closed 2 years ago

pozil commented 2 years ago

Describe the bug I'm unable to select my entire project directory using the Scan Flows command. The file picker won't let me select a directory, it only accepts a single file. I'm trying to scan my entire project as shown the readme screenshots but I can only scan one flow at the time. BTW the doc seems incomplete, I would add explanations on how to do this and also detail the installation process.

To Reproduce Steps to reproduce the behavior:

  1. In VSCode, open the command palette
  2. Select Scan Flows, this opens a file picker dialog
  3. Try to select a directory

Expected behavior I can select a parent directory and the tool will scan flows in sub directories

VS Code extension version 1.0.5

RubenHalman commented 2 years ago

Thank you. This is a good suggestion and I will pick it up. Currently the way to select multiple flows is to use shift or control to select multiple files. I added captions of the keystrokes to the demo GIF. Unfortunately this currently means you are restricted to flows within the same folder.

Update: On windows and linux the picker does not support both files and folders, only either or. Not a big deal to change to create an option to change it to folders but some additional effort to get this working across different OS.

RubenHalman commented 2 years ago

This has now been implemented. By default the file picker will ask for a folder, but there is a configuration to switch to specifying files