]> xenbits.xensource.com Git - libvirt.git/commitdiff
Adjust backslash alignment syntax-check
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 22 Nov 2017 10:27:16 +0000 (11:27 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 23 Nov 2017 10:31:52 +0000 (11:31 +0100)
We have a check for backslash alignment that checks for two blanks preceding a
backslash.  However there can be alignment done using a tabulator and in some
cases one might be enough.  There are none currently, but I found out that was
the case before. at some point.  so let's check for \t preceding the final
backslash as well.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 5321a52b7ee2b7960666ff0a2bde7aeac1ae95e3..ea10ca19f5129f0f6558e8bc8ace0e97e452e52e 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -1038,7 +1038,7 @@ sc_prohibit_http_urls:
          $(_sc_search_regexp)
 
 sc_prohibit_backslash_alignment:
-       @prohibit='[[:blank:]][[:blank:]]\\$$' \
+       @prohibit='([[:blank:]][[:blank:]]|     )\\$$' \
        in_vc_files='*\.([chx]|am|mk)$$' \
        halt='Do not attempt to right-align backslashes' \
          $(_sc_search_regexp)