Last active
October 30, 2020 20:00
-
-
Save msrivastav13/97a102a58c6fb1aee1fe45ac42990e82 to your computer and use it in GitHub Desktop.
Run Salesforce CLI scanner on current file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "SFDX: Run Security Scan on Current File", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"scanner:run", | |
"-t", | |
"${relativeFile}", | |
"-c", | |
"Security" | |
], | |
"group": "build", | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Robert,
Unfortunately project scaffold command of sfdx at this point does not let you to add your own scaffold templates.
You can build a salesforce cli plugin if you need this in every project!