Skip to content

Commit 4645ff0

Browse files
committed
Add phpstan-analyze-project and phpstan-generate-baseline
1 parent 9edd6dd commit 4645ff0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

phpstan.el

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,19 @@ it returns the value of `SOURCE' as it is."
322322
(compile (mapconcat #'shell-quote-argument
323323
(phpstan-get-command-args :include-executable t :args (list file)) " ")))
324324

325+
;;;###autoload
326+
(defun phpstan-analyze-project ()
327+
"Analyze a PHP project using PHPStan."
328+
(interactive)
329+
(compile (mapconcat #'shell-quote-argument (phpstan-get-command-args :include-executable t) " ")))
330+
331+
;;;###autoload
332+
(defun phpstan-generate-baseline ()
333+
"Generate PHPStan baseline file."
334+
(interactive)
335+
(compile (mapconcat #'shell-quote-argument
336+
(phpstan-get-command-args :include-executable t :options '("--generate-baseline")) " ")))
337+
325338
;;;###autoload
326339
(defun phpstan-pro ()
327340
"Analyze current PHP project using PHPStan Pro."

0 commit comments

Comments
 (0)