From: Andrea Bolognani Date: Tue, 31 Oct 2017 13:12:52 +0000 (+0100) Subject: cfg.mk: Prohibit backspace alignment attempts X-Git-Tag: v3.10.0-rc1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5ce8bd03478d861347e9ef1e9689e4276773a04;p=thirdparty%2Flibvirt.git cfg.mk: Prohibit backspace alignment attempts Now that our codebase is clean, we can add a syntax-check rule to ensure it will remain so. Signed-off-by: Andrea Bolognani --- diff --git a/cfg.mk b/cfg.mk index d5db05f688..5321a52b7e 100644 --- a/cfg.mk +++ b/cfg.mk @@ -1037,6 +1037,12 @@ sc_prohibit_http_urls: halt='Links must use https:// protocol' \ $(_sc_search_regexp) +sc_prohibit_backslash_alignment: + @prohibit='[[:blank:]][[:blank:]]\\$$' \ + in_vc_files='*\.([chx]|am|mk)$$' \ + halt='Do not attempt to right-align backslashes' \ + $(_sc_search_regexp) + # We don't use this feature of maint.mk. prev_version_file = /dev/null