]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: Suggest ways to fix internal references
authorAndrea Bolognani <abologna@redhat.com>
Wed, 13 Nov 2024 21:51:35 +0000 (22:51 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 14 Nov 2024 10:02:42 +0000 (11:02 +0100)
The rule catches incorrect attempts to use internal references,
but doesn't guide the developer hitting a failure towards the
not exactly obvious acceptable alternatives.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
build-aux/syntax-check.mk

index 6ed2a61192e739d22b6ccfd89fb7d33c1af320a3..2c9593c28f302e3fba7d4e8635319e42d4c5e306 100644 (file)
@@ -1135,7 +1135,7 @@ sc_prohibit_backup_files:
 sc_avoid_remote_reference_to_local_file:
        @prohibit='<#' \
        in_vc_files='\.rst$$' \
-       halt='use local reference within a file' \
+       halt='use `section`_ or `here <section_>`__ instead of `here <#section>`__' \
          $(_sc_search_regexp)
 
 # This Perl code is slightly obfuscated.  Not only is each "$" doubled