forcedotcom / sfdx-scanner

MIT License
212 stars 49 forks source link

Feature Request - Add engine and set of rules to scan flows #1144

Open HerbertHBT opened 1 year ago

HerbertHBT commented 1 year ago

Is your feature request related to a problem? Please describe. Since flows have become a popular and important automation tool, it would be nice to have an engine to perform static analysis on Salesforce Flows to identify violations of industry best practices, like hardcoded ids, DML in loops and etc. Maybe Code Analyzer could incorporate the Lightning Flow Scanner Sfdx initiative https://github.com/Force-Config-Control/lightning-flow-scanner-sfdx

Describe the solution you'd like I would like to use the Code Analyzer, which is already integrated into my CI/CD jobs, to find problems in Flows in earlier development stages, maybe specifying and engine. E.g.: sfdx scanner:run --target "/some/dir" --engine flow

Describe alternatives you've considered There are some plugins out there, for example, lightning-flow-scanner-sfdx, but it's still a Beta version and does not support the output formats like HTML reports my developers are used to.

"Workaround": Can you do something similar with existing capabilities? No, there isn't any existing capability flow flows static analysis.

"Urgency": Nice to have.

git2gus[bot] commented 6 months ago

This issue has been linked to a new work item: W-15080671