Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lightning-flow-scanner-core

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightning-flow-scanner-core

### _The core contains the rule engine used in both the [VSCode extension](https://marketplace.visualstudio.com/items?itemName=ForceConfigControl.lightningflowscanner&ssr=false#review-details) and the [SFDX plugin](https://www.npmjs.com/package/lightning-

  • 1.0.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.3K
decreased by-11.33%
Maintainers
1
Weekly downloads
 
Created
Source

Lightning Flow Scanner(Rule Engine)

The core contains the rule engine used in both the VSCode extension and the SFDX plugin.

Available Rules:

  • DML statements in a loop
  • Duplicate DML operations
  • Hardcoded Ids
  • Missing flow description
  • Missing error handlers
  • Missing null handlers
  • Unconnected elements(fixable)
  • Unused variables(fixable)

Functions

getRules(ruleNames? : string[]): IRuleDefinition[];

Returns all rules if there are no ruleNames specified. In case ruleNames are specified, it will only return rules which are included by name.

scan(flows: Flow[], ruleOptions?: ScannerOptions): ScanResult[];

If there are no ruleNames specified, it will run all available rules by default. In case that there are ruleNames specified, only the specified rules will be ran.

fix(flows :Flow[]): ScanResult[];

Remove unused variables and unconnected elements from selected flows automatically.

FAQs

Package last updated on 06 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc