mitchspano/sfdx-scan-pull-request

Issue with missing tsconfig.json

Closed this issue · 2 comments

We made a change to jsonconfig.json. Added checkJs: true

{
  "compilerOptions": {
    "experimentalDecorators": true,
    "checkJs": true,
    "target": "ESNext"
  },
  "include": ["**/*", "../../../../.sfdx/typings/lwc/**/*.d.ts", "../../../../types/*.d.ts"]
}

Unfortunately, it is now looking for tsconfig.json

Error: Command failed: node_modules/sfdx-cli/bin/run scanner:run     --pmdconfig="ruleset.xml"      --format json     --target "temporary"     --outfile "sfdx-scanner-findings.json"
 ›   Warning: sfdx-cli update available from 7.192.2 to 7.194.1.
WARNING: We're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at https://research.net/r/SalesforceCA
ERROR running scanner:run:  We couldn't find 'tsconfig.json' in the current directory '/home/runner/work/salesforce-job-scope-review/salesforce-job-scope-review'. Switch to a directory that contains 'tsconfig.json' or specify the current directory with the --tsconfig flag.

Can you share your .yml file? it looks like you might be missing the tsconfig input variable.

Closing this due to inactivity