forcedotcom / sfdx-scanner

MIT License
217 stars 50 forks source link

[BUG] Category negative filter not working #900

Closed surbhitomar closed 7 months ago

surbhitomar commented 1 year ago

When I am running below command it's not working but vise versa is working.

Working sfdx scanner:run --target=C:\Software\VisualStudio_Code\Ofcom-Salesforce-Pilot\force-app\main\default\lwc\midContactLwc --format table --severity-threshold 3 --engine eslint-lwc --category 'problem' Category positive filter working __ Not working sfdx scanner:run --target=C:\Software\VisualStudio_Code\Ofcom-Salesforce-Pilot\force-app\main\default\lwc\midContactLwc --format table --severity-threshold 3 --engine eslint-lwc --category '!layout' Category negative filter not working

git2gus[bot] commented 1 year ago

This issue has been linked to a new work item: W-12195476

jfeingold35 commented 1 year ago

Hi @surbhitomar . Looks like this is an issue with how we filter rules. This seems to be isolated to ESLint and its derivatives, though, and PMD seems to be unaffected. We'll log this and add it to our backlog, but in the meantime you should be able to work around it by using a custom ESLint config.