**Describe the bug** All the LWC files fail with "files-must-compile" **To Reproduce** Run sfdx-scanner on LWC files: sfdx scanner:run --target "*.js" --v --outfile "c:\temp\js\issues.csv" --format csv **Expected behavior** Assessment of files against PMD / Lint rules **Screenshots** If applicable, add screenshots to help explain your problem. Example data in CSV below Problem | File | Severity | Line | Column | Rule | Description | URL | Category | Engine -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 1 | C:\temp\js\boatAddReviewForm.js | 2 | 20 | 11 | files-must-compile | Parsing error: Unexpected token ; | Scanner Internal | eslint 2 | C:\temp\js\boatDetailTabs.js | 2 | 27 | 3 | files-must-compile | Parsing error: Unexpected character '@' | Scanner Internal | eslint 3 | C:\temp\js\boatMap.js | 2 | 18 | 16 | files-must-compile | Parsing error: Unexpected token = | Scanner Internal | eslint 4 | C:\temp\js\boatReviews.js | 2 | 9 | 11 | files-must-compile | Parsing error: Unexpected token ; | Scanner Internal | eslint **Desktop (please complete the following information):** - OS: [e.g. iOS] - Scanner Version [e.g. 22] Windows 10 / @salesforce/sfdx-scanner 2.6.0 **Additional context** Add any other context about the problem here. "Workaround": Have you found any ways to sidestep the problem? "Urgency": How severe is this problem? "Business stopping" vs "Not business-stopping".
Activity
jbartolotta-sfdc commentedon Mar 10, 2021
@RobinBarnwellFinastra sorry for the inconvenience, we are working on making this more usable.
Can you try running with the
lwcenginesfdx scanner:run --engine eslint-lwc --target "*.js" --v --outfile "c:\temp\js\issues.csv" --format csvRobinBarnwellFinastra commentedon Mar 11, 2021
Well done that fixed it. thx