We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be281df commit 430b045Copy full SHA for 430b045
drupal/flymake-phpcs.el
@@ -49,8 +49,11 @@
49
;; version of `flymake-allowed-file-name-masks' and make
50
;; flymake-phpcs initialize.
51
(make-local-variable 'flymake-allowed-file-name-masks)
52
- (add-to-list 'flymake-allowed-file-name-masks
53
- `(,(concat "\\." (file-name-extension (or buffer-file-name (buffer-name))) "\\'") flymake-phpcs-init))
+ (let ((extension (file-name-extension (or buffer-file-name (buffer-name)))))
+ (when (string-match "\\.tpl\\.php\\'" (or buffer-file-name (buffer-name)))
54
+ (setq extension "tpl\\.php"))
55
+ (add-to-list 'flymake-allowed-file-name-masks
56
+ `(,(concat "\\." extension "\\'") flymake-phpcs-init)))
57
(flymake-mode 1)))
58
59
(add-hook 'drupal-mode-hook #'drupal/flymake-phpcs-enable)
0 commit comments