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 3, 2024
1 parent 335b5e8 commit 3e9eefe
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 @@ -147,10 +147,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 3e9eefe

Please sign in to comment.