Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
lightning-flow-scanner-core
Advanced tools
_An Extensible Rule Engine for Salesforce Flows used by the Lightning Flow Scanner [Salesforce CLI Plugin](https://www.npmjs.com/package/lightning-flow-scanner) and [VS Code Extension](https://marketplace.visualstudio.com/items?itemName=ForceConfigControl
An Extensible Rule Engine for Salesforce Flows used by the Lightning Flow Scanner Salesforce CLI Plugin and VS Code Extension.
The default ruleset consists of the following rules:
For more details on the ruleset and its configurability see Default Rule Definitions
Using the rules section of your configurations, you can specify the list of rules to be run and provide custom rules. Furthermore, you can define the severity of violating specific rules and configure relevant attributes for some rules. Below is a breakdown of the available attributes of rule configuration:
{
"rules": {
"<RuleName>": {
"severity": "<Severity>",
"expression": "<Expression>",
"path": "<Path>"
}
}
}
Severity:
Expression:
Path:
To create custom rules that can be loaded using the path attribute of the rule configurations, they need to adhere to the IRuleInterface. Please refer to the Custom Rule Creation Guide for detailed instructions.
Specifying exceptions allows you to exclude specific scenarios from rule enforcement. Exceptions can be specified at the flow, rule, or result level to provide fine-grained control. Below is a breakdown of the available attributes of exception configuration:
{
"exceptions": {
"<FlowName>": {
"<RuleName>": [
"<ResultName>",
"<ResultName>",
...
]
},
...
}
}
FlowName:
RuleName:
ResultName:
Follow these steps to set up your development environment:
Clone Repository: Begin by cloning the Lightning Flow Scanner Core repository to your local machine:
git clone https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core.git
Install Dependencies: Navigate into the cloned repository directory and install the necessary dependencies using Yarn:
cd lightning-flow-scanner-core
yarn install
Build: Compile the TypeScript source files into JavaScript using the TypeScript compiler:
yarn build
This command generates the compiled JavaScript files in the out
directory.
Run Tests: Ensure the module functions correctly by running the test suites:
yarn test
This command uses Mocha to run tests located in the tests
directory and provides feedback on the module's functionality.
Debugging in IDE: If needed, set up your integrated development environment (IDE) for debugging TypeScript code. Configure breakpoints, inspect variables, and step through the code to identify and resolve issues efficiently.
FAQs
A rule engine capable of conducting static analysis on the metadata associated with Salesforce Lightning Flows, Process Builders, and Workflows.
The npm package lightning-flow-scanner-core receives a total of 3,713 weekly downloads. As such, lightning-flow-scanner-core popularity was classified as popular.
We found that lightning-flow-scanner-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.