From: Pavel Hrdina Date: Mon, 23 May 2016 23:00:07 +0000 (+0200) Subject: maint: fix syntax-check sc_prohibit_int_ijk exclude rule X-Git-Tag: v1.3.3.3~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8123b6bc355a75772d07041196b970cea492f978;p=thirdparty%2Flibvirt.git maint: fix syntax-check sc_prohibit_int_ijk exclude rule Fix the regex for excluding files for this syntax-rule. The rule "include/" will not work, because we are matching the whole line like this "^(...|include/|...)$ so we need to use "include/libvirt/libvirt.+". The second issue is that we are using only one '$' but there should be two of those at the end. The last small adjustment is to escape dots '.' so it match only dot. Signed-off-by: Pavel Hrdina (cherry picked from commit a94efa50e253cb59a2925dca2705bce801f46fb1) --- diff --git a/cfg.mk b/cfg.mk index d116a9b8c4..d5da1a1b7d 100644 --- a/cfg.mk +++ b/cfg.mk @@ -1238,7 +1238,7 @@ exclude_file_name_regexp--sc_prohibit_include_public_headers_brackets = \ ^(tools/|examples/|include/libvirt/(virterror|libvirt(-(admin|qemu|lxc))?)\.h$$) exclude_file_name_regexp--sc_prohibit_int_ijk = \ - ^(src/remote_protocol-structs|src/remote/remote_protocol.x|cfg.mk|include/)$ + ^(src/remote_protocol-structs|src/remote/remote_protocol\.x|cfg\.mk|include/libvirt/libvirt.+)$$ exclude_file_name_regexp--sc_prohibit_getenv = \ ^tests/.*\.[ch]$$