Skip to content

Commit

Permalink
patch part 1/3 for PHP_PHPLINT and SARIF support (see feature request #…
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed May 5, 2024
1 parent 1019329 commit f8be835
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions megalinter/descriptors/php.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,13 @@ linters:
url: https://marketplace.visualstudio.com/items?itemName=getpsalm.psalm-vscode-plugin
# PHPLint
- linter_name: phplint
can_output_sarif: true
linter_url: https://github.com/overtrue/phplint
linter_repo: https://github.com/overtrue/phplint
config_file_name: .phplint.yml
cli_lint_mode: list_of_files
cli_sarif_args:
- "--log-sarif={{SARIF_OUTPUT_FILE}}"
examples:
- "phplint myfile.php"
- "phplint mydir"
Expand Down

0 comments on commit f8be835

Please sign in to comment.