[PATCH 53/67] syntax-check: Add check prohibiting remote reference to local file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Within a file we should use the internal reference syntax.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 build-aux/syntax-check.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk
index e8f9a91cee..649eb91acb 100644
--- a/build-aux/syntax-check.mk
+++ b/build-aux/syntax-check.mk
@@ -1087,6 +1087,13 @@ sc_prohibit_backup_files:
 	  { echo 'found version controlled backup file' 1>&2; \
 	    exit 1; } || :

+# prohibit remote references to local file in RST files
+sc_avoid_remote_reference_to_local_file:
+	@prohibit='<#' \
+	in_vc_files='\.rst$$' \
+	halt='use local reference within a file' \
+	  $(_sc_search_regexp)
+
 # This Perl code is slightly obfuscated.  Not only is each "$" doubled
 # because it's in a Makefile, but the $$c's are comments;  we cannot
 # use "#" due to the way the script ends up concatenated onto one line.
-- 
2.35.3




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux