Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scannner command line args which specify a file path cause crash #11

Closed
mitchspano opened this issue Aug 4, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@mitchspano
Copy link
Owner

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.
mitchspano added a commit that referenced this issue Aug 4, 2022
* Add quotes to the concatenated command line arguments #11

* Update readme to show example of how to specify ruleset
@mitchspano mitchspano added the bug Something isn't working label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant