Skip to content

[BUG] #366

Closed
Closed

Description

@RobinBarnwellFinastra

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

  1. jbartolotta-sfdc commented on Mar 10, 2021

    @jbartolotta-sfdc
    Contributor

    @RobinBarnwellFinastra sorry for the inconvenience, we are working on making this more usable.

    Can you try running with the lwc engine

    sfdx scanner:run --engine eslint-lwc --target "*.js" --v --outfile "c:\temp\js\issues.csv" --format csv

  2. RobinBarnwellFinastra commented on Mar 11, 2021

    @RobinBarnwellFinastra
    Author

    Well done that fixed it. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions