Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Last active October 30, 2020 20:00
Show Gist options
  • Save msrivastav13/97a102a58c6fb1aee1fe45ac42990e82 to your computer and use it in GitHub Desktop.
Save msrivastav13/97a102a58c6fb1aee1fe45ac42990e82 to your computer and use it in GitHub Desktop.
Run Salesforce CLI scanner on current file
{
"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": []
}
]
}
@msrivastav13
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment