0.0.21 • Published 3 years ago
lightning-flow-scanner-cli v0.0.21
lightning-flow-scanner-cli
Installation
npm:
$ npm install -g lightning-flow-scanner-cli
sfdx:
sfdx plugins:install lightning-flow-scanner-cli
Usage
USAGE
$ sfdx flow:scan [--json][--silent] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
--json format output as json
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
this command invocation
--silent will not throw errors
Configurations
Use a .flowscanignore file to:
activeRules
select a limited set of rules to run.
overrides
specify results to ignore.
{
"activeRules": [
"DMLStatementInLoop",
"DuplicateDMLOperationsByNavigation",
"HardcodedIds"
],
"overrides": [
{
"flowName": "Create Property",
"results": [{
"ruleName" : "DuplicateDMLOperationsByNavigation",
"result":"error_creating_records"
},
{
"ruleName" : "DuplicateDMLOperationsByNavigation",
"result":"upload_picture"
}]
}
]
}
See code: src/commands/flow/scan.ts