You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @kumo2kumo . I am unable to reproduce this error. Can you please first try updating to our latest-beta to see if the issue happens there as well. That is, do the following:
sf plugins uninstall @salesforce/sfdx-scanner
sf plugins install @salesforce/sfdx-scanner@latest-beta
then run your command.
If you still get an error, can you please copy/paste the contents of the C:\Users<username>\AppData\Local\sf\node_modules@salesforce\sfdx-scanner\node_modules\simple-swizzle\package.json file here as a comment.
Description:
I scanned my code with Salesforce Code Analyzer for security review and got SyntaxError.
run:
sf scanner run --format=csv --outfile=CodeAnalyzerGeneral.csv --target="./" --category="Security"
error:
SyntaxError: Error parsing C:\Users\<username>\AppData\Local\sf\node_modules\@salesforce\sfdx-scanner\node_modules\simple-swizzle\package.json: Unexpected token '', ""... is not valid JSON
Steps To Reproduce:
sf update.
sf plugins install @salesforce/sfdx-scanner.
sf scanner run --format=csv --outfile=CodeAnalyzerGeneral.csv --target="./" --category="Security"
SyntaxError: Error parsing C:\Users\<username>\AppData\Local\sf\node_modules\@salesforce\sfdx-scanner\node_modules\simple-swizzle\package.json: Unexpected token '', ""... is not valid JSON
follwed by salesforce guide
Desktop:
Workaround:
The text was updated successfully, but these errors were encountered: