[libvirt] [PATCH 2/2] cfg.mk: Prohibit backspace alignment attempts

Andrea Bolognani posted 2 patches 7 years, 6 months ago
[libvirt] [PATCH 2/2] cfg.mk: Prohibit backspace alignment attempts
Posted by Andrea Bolognani 7 years, 6 months ago
Now that our codebase is clean, we can add a syntax-check rule
to ensure it will remain so.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 cfg.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cfg.mk b/cfg.mk
index d5db05f68..5321a52b7 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
 
-- 
2.13.6

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list