From a0f93152bb42886dd458ca593eae3703057e191f Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Fri, 3 May 2024 15:41:35 +0000 Subject: [PATCH] patch part 1/3 for PHP_PHPLINT and SARIF support (see feature request #3515) --- megalinter/descriptors/php.megalinter-descriptor.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/megalinter/descriptors/php.megalinter-descriptor.yml b/megalinter/descriptors/php.megalinter-descriptor.yml index ee7861ec23f..e4b851ac83a 100644 --- a/megalinter/descriptors/php.megalinter-descriptor.yml +++ b/megalinter/descriptors/php.megalinter-descriptor.yml @@ -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"