Skip to content

Commit 162a1ab

Browse files
authored
Merge pull request #1 from emacs-php/update/readme
Update Lisp headers and doc comments
2 parents 7bc5ef8 + c8d18c9 commit 162a1ab

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

ob-phpstan.el

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
1-
;;; ob-phpstan.el --- run phpstan with org-babel -*- lexical-binding: t -*-
1+
;;; ob-phpstan.el --- Babel Functions for PHPStan -*- lexical-binding: t; -*-
22

3-
;; Author: Takeo Obara <bararararatty@gmail.com>
4-
;; Maintainer: Takeo Obara
5-
;; Version: v1.0.0
6-
;; Package-Requires: ((emacs "29.0"))
7-
;; Homepage: https://github.com/takeokunn/ob-phpstan
8-
;; Keywords: phpstan, org, babel
3+
;; Copyright (C) 2023 Takeo Obara
94

10-
;; This file is not part of GNU Emacs
5+
;; Author: Takeo Obara <bararararatty@gmail.com>
6+
;; Version: 0.0.1
7+
;; Package-Requires: ((emacs "28") (org "9"))
8+
;; Homepage: https://github.com/emacs-php/ob-phpstan
9+
;; Keywords: tools, org, literate programming, reproducible research, php
10+
;; License: GPL-3.0-or-later
1111

12-
;; This file is free software; you can redistribute it and/or modify
12+
;; This program is free software; you can redistribute it and/or modify
1313
;; it under the terms of the GNU General Public License as published by
14-
;; the Free Software Foundation; either version 3, or (at your option)
15-
;; any later version.
14+
;; the Free Software Foundation, either version 3 of the License, or
15+
;; (at your option) any later version.
1616

1717
;; This program is distributed in the hope that it will be useful,
1818
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
1919
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2020
;; GNU General Public License for more details.
2121

22-
;; For a full copy of the GNU General Public License
23-
;; see <http://www.gnu.org/licenses/>.
24-
22+
;; You should have received a copy of the GNU General Public License
23+
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
2524

2625
;;; Commentary:
2726

28-
;; run phpstan with org-babel
27+
;; Static analyze a block of PHP code with org-babel using PHPStan.
2928

3029
;;; Code:
3130
(require 'org)
3231
(require 'ob)
3332

3433
(defgroup ob-phpstan nil
35-
"org-mode blocks for phpstan"
34+
"org-mode blocks for PHPStan."
3635
:group 'org)
3736

3837
(defcustom org-babel-phpstan-command "phpstan"
@@ -47,7 +46,8 @@
4746

4847
;;;###autoload
4948
(defun org-babel-execute:phpstan (body params)
50-
"Org mode fish evaluate function"
49+
"Static analyze a block of PHP code with org-babel using PHPStan.
50+
This function is called by `org-babel-execute-src-block'."
5151
(let ((tmp-file (org-babel-temp-file "phpstan-" ".php"))
5252
(body (if (string-prefix-p "<" body)
5353
body
@@ -65,5 +65,4 @@
6565
'(add-to-list 'org-src-lang-modes '("phpstan" . phpstan)))
6666

6767
(provide 'ob-phpstan)
68-
6968
;;; ob-phpstan.el ends here

0 commit comments

Comments
 (0)