[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 8599809578 058/308: Flymake-phpcs also highlig
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 8599809578 058/308: Flymake-phpcs also highlights trailing whitespace. |
Date: |
Tue, 25 Jan 2022 10:59:28 -0500 (EST) |
branch: elpa/drupal-mode
commit 859980957859bf1daca5ff5d520268206690edfe
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Flymake-phpcs also highlights trailing whitespace.
Flymake-phpcs will also highlight trailing whitespace as an error so
no need to highlight it twice.
---
drupal/flymake-phpcs.el | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drupal/flymake-phpcs.el b/drupal/flymake-phpcs.el
index fa3028a1bd..0529b0ef41 100644
--- a/drupal/flymake-phpcs.el
+++ b/drupal/flymake-phpcs.el
@@ -37,6 +37,15 @@
:link '(url-link :tag "Drupal Code Sniffer"
"http://drupal.org/project/drupalcs")
:group 'drupal)
+(defcustom drupal/flymake-phpcs-dont-show-trailing-whitespace t
+ "Non-nil means don't highlight trailing whitespace when flymake-phpcs is in
use.
+Flymake-phpcs will also highlight trailing whitespace as an error
+so no need to highlight it twice."
+ :type `(choice
+ (const :tag "Yes" t)
+ (const :tag "No" nil))
+ :group 'drupal)
+
(defun drupal/flymake-phpcs-enable ()
"Enable drupal-mode support for flymake-phpcs."
(when (and (apply 'derived-mode-p (append drupal-php-modes drupal-css-modes
drupal-js-modes))
@@ -46,6 +55,11 @@
;; supported above.
(set (make-local-variable 'flymake-phpcs-standard)
drupal/flymake-phpcs-standard)
+ ;; Flymake-phpcs will also highlight trailing whitespace as an
+ ;; error so no need to highlight it twice.
+ (when drupal/flymake-phpcs-dont-show-trailing-whitespace
+ (setq show-trailing-whitespace nil))
+
;; 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.
- [nongnu] elpa/drupal-mode 661e6bba48 040/308: Changed info about flymake-phpcs., (continued)
- [nongnu] elpa/drupal-mode 661e6bba48 040/308: Changed info about flymake-phpcs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ebb3c56e25 068/308: Discovers more module info and added module menu., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 587e0eb2ec 060/308: Added completion based on gtags., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e96a1f70f4 066/308: Added support for "Drush utilities for Emacs users"., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5386751a5d 069/308: Fixed module version in module menu., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8fc32e7641 053/308: Made `drupal-detect-drupal-version' more reliable., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ce7e9d2bf3 043/308: Various cleanup., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 00aae1e5e8 070/308: Added support for `web-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 48a90d94ed 061/308: Fixed spelling., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b8863a5c82 054/308: Added first take on automated tests., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8599809578 058/308: Flymake-phpcs also highlights trailing whitespace.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode aa87684203 048/308: Added `require' for supported libraries., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 897fbfb4a5 082/308: Added small optimization for byte compiler., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a53c312da1 089/308: Improved info file auto-insert skeleton., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 42fc725add 092/308: Hardened match for code sniffer standard., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4688c8f0cb 101/308: Fixed use of `called-interactively-p'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7866012679 103/308: Fixed link to other drupal-modes at Gitub, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8951d9a7e8 105/308: Extended documentation of `drupal/flymake-phpcs-standard'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3df6f6725c 110/308: Add contributing guidelines., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f0ae32d88a 111/308: Added first take at a `drush-make-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cd3e68f6b3 113/308: Better support for hook_form_FORM_ID_alter() et al., ELPA Syncer, 2022/01/25