[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode b34cc6fb8f 042/308: Ensured flymake-phpcs is r
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode b34cc6fb8f 042/308: Ensured flymake-phpcs is run in php-mode buffers. |
Date: |
Tue, 25 Jan 2022 10:59:13 -0500 (EST) |
branch: elpa/drupal-mode
commit b34cc6fb8f55cb43adbcce81e05011de7a162d08
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Ensured flymake-phpcs is run in php-mode buffers.
Made sure flymake-phpcs will run in a Drupal mode php-mode buffer no
matter what extension it has and how `flymake-allowed-file-name-masks'
is defined.
Maybe a bit silly to do this buffer locally but this ensures:
* We don't have to maintain a list of allowed masks for Drupal
php-buffers here.
* We won't mess up other buffers with same extension (think a very
generic extension like .theme and a non-Drupal file).
---
drupal/flymake-phpcs.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drupal/flymake-phpcs.el b/drupal/flymake-phpcs.el
index 6eaee99b2d..a8ac52af74 100644
--- a/drupal/flymake-phpcs.el
+++ b/drupal/flymake-phpcs.el
@@ -16,7 +16,17 @@
(with-output-to-string
(with-current-buffer standard-output
(call-process (executable-find flymake-phpcs-command) nil
(list t nil) nil "-i"))))))
+ ;; Set the coding standard to "Drupal" (we checked that it is
+ ;; supported above.
(set (make-local-variable 'flymake-phpcs-standard) "Drupal")
+
+ ;; This is a php-mode file so add the extension to a buffer locale
+ ;; version of `flymake-allowed-file-name-masks' and make
+ ;; flymake-phpcs initialize.
+ (make-local-variable 'flymake-allowed-file-name-masks)
+ (add-to-list 'flymake-allowed-file-name-masks
+ `(,(concat "\\." (file-name-extension (buffer-file-name))
"\\'") flymake-phpcs-init))
+
;; We have probably set `flymake-phpcs-standard' after a syntax
;; check was initiated - so kill it and start syntax check again.
(flymake-stop-all-syntax-checks)
- [nongnu] elpa/drupal-mode f491ac72b9 081/308: Redefined key bindings., (continued)
- [nongnu] elpa/drupal-mode f491ac72b9 081/308: Redefined key bindings., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8e19894d55 051/308: `drupal-insert-hook' got completing-read support., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode af2b2c5a76 118/308: Changed `replace-regexp-in-string` to `subst-char-in-string`., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 243db30a93 004/308: Compiled elisp should not be committed., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 21a3c7544d 049/308: Drupal menu adjusted., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d3b4c6f1e7 112/308: Added variable for GNU GLOBAL`global' command., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f150913830 050/308: Added skeletons for functions and hooks., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6a7322f581 052/308: Optimized for byte-compile by using #' shorthand., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d0031d4c1f 056/308: Added/adjusted COPYING information., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b4496a561f 047/308: Revert parts of 55a523b65fe53ca06f429cffd91ead6ff76667d2, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b34cc6fb8f 042/308: Ensured flymake-phpcs is run in php-mode buffers.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 88d744068c 073/308: Fixed regexp., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d23d66e624 083/308: Support `php-extras-eldoc-documentation-function'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d73965852e 085/308: Fixed flaw in `drupal-major-version'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5c53b742fb 087/308: Improved buffer-file-name fallbacks., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e65bf476cd 090/308: Fixed module version for Drupal core modules., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0ef0569693 088/308: Fixed keyboard shortcuts in documentation., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 767d490751 094/308: Removed `web-mode' from `auto-mode-alist'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 469ff86a3e 120/308: Changed `css-indent-offset' to `css-indent-level'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6022df5bd8 126/308: Merge remote-tracking branch 'origin/pr/34' into develop., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a5243b655e 140/308: No need for #., ELPA Syncer, 2022/01/25