mitchspano / sfdx-scan-pull-request

Runs sfdx-scanner on a pull request and generates in-line comments with the findings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scannner command line args which specify a file path cause crash

mitchspano opened this issue · comments

Using any of the scanner command line arguments which specify a path to a file seem to break the scan.

I believe this is an issue with the relative path of the supplied filename, or perhaps missing quotes.

WARNING: No rules found. Maybe you misspelled a rule name? (ruleset.xml)

node:child_process:826
    err = new Error(msg);
          ^

Error: Command failed: node_modules/sfdx-cli/bin/run scanner:run     --pmdconfig=ruleset.xml      --format json     --target "temporary"     --outfile "sfdx-scanner-findings.json"
WARNING: We're constantly improving Salesforce Code Analyzer. Tell us what you think! Give feedback at https://research.net/r/SalesforceCA.