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

Update calls to sfdx-scanner to output a CSV file for Aura & LWC #3398

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/linters/.eslintrc-lwc.json

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l

- Fixes
- Trivy: use `misconfig` instead of the deprecated `config` scanner, updating the default arguments
- Update calls to sfdx-scanner to output a CSV file for Aura & LWC

- Doc
- Removed obsolete warning for semgrep as the issue has been fixed
Expand Down
11 changes: 0 additions & 11 deletions TEMPLATES/.eslintrc-lwc.json

This file was deleted.

12 changes: 8 additions & 4 deletions megalinter/descriptors/salesforce.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ linters:
- "**/aura/**/*.js"
- "--severity-threshold"
- "2"
- "--outfile"
- "{{REPORT_FOLDER}}/sfdx-scanner-report-aura.csv"
- "--format"
- "csv"
cli_lint_mode: project
Expand All @@ -132,8 +134,8 @@ linters:
- "plugins"
cli_version_arg_name: ""
version_extract_regex: "(?<=@salesforce/sfdx-scanner )\\d+(\\.\\d+)+"
cli_lint_errors_count: regex_count
cli_lint_errors_regex: '"[0-9]+",'
cli_lint_errors_count: regex_sum
cli_lint_errors_regex: "found ([0-9]+) violation"
examples:
- "sfdx scanner:run"
install:
Expand Down Expand Up @@ -179,6 +181,8 @@ linters:
- "**/lwc/**/*.js"
- "--severity-threshold"
- "2"
- "--outfile"
- "{{REPORT_FOLDER}}/sfdx-scanner-report-lwc.csv"
- "--format"
- "csv"
cli_lint_mode: project
Expand All @@ -190,8 +194,8 @@ linters:
- "plugins"
cli_version_arg_name: ""
version_extract_regex: "(?<=@salesforce/sfdx-scanner )\\d+(\\.\\d+)+"
cli_lint_errors_count: regex_count
cli_lint_errors_regex: '"[0-9]+",'
cli_lint_errors_count: regex_sum
cli_lint_errors_regex: "found ([0-9]+) violation"
examples:
- "sfdx scanner:run"
install:
Expand Down
Loading