Skip to content

Commit

Permalink
SARIF Management for PHP PSALM
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Dec 8, 2021
1 parent 859d79e commit a8cde0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l
- eslint
- gitleaks
- hadolint
- psalm
- trivy

- Descriptors:
Expand Down
3 changes: 3 additions & 0 deletions megalinter/descriptors/php.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ linters:
# PSALM
- linter_name: psalm
name: PHP_PSALM
can_output_sarif: true
linter_url: https://psalm.dev
linter_repo: https://github.com/vimeo/psalm
linter_rules_url: https://psalm.dev/docs/running_psalm/issues/
Expand All @@ -132,6 +133,8 @@ linters:
config_file_name: psalm.xml
cli_lint_mode: list_of_files
cli_config_arg_name: "--config="
cli_sarif_args:
- "--report={{SARIF_OUTPUT_FILE}}"
version_extract_regex: "((\\d+(\\.\\d+)+)|Psalm (.*)@)"
cli_lint_errors_count: regex_number
cli_lint_errors_regex: "([0-9]+) error"
Expand Down

0 comments on commit a8cde0b

Please sign in to comment.