mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 22:45:17 +00:00
syntax-check: Enforce sc_prohibit_backslash_alignment everywhere
Basically all files in the repository are already passing the check, except for syntax-check.mk itself. Fix that, and stop limiting the files on which the test is performed. These changes have been generated by running $ sed -Ei 's/[ '$'\t'']+\\$/ \\/g' $(git grep -El '[ '$'\t'']+\\$') Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
6545173b69
commit
7f403bc251
@ -863,7 +863,6 @@ sc_prohibit_author:
|
|||||||
# or tabs (at least one of them) right before the trailing backslash
|
# or tabs (at least one of them) right before the trailing backslash
|
||||||
sc_prohibit_backslash_alignment:
|
sc_prohibit_backslash_alignment:
|
||||||
@prohibit='( | )\\$$' \
|
@prohibit='( | )\\$$' \
|
||||||
in_vc_files='*\.([chx]|am|mk)$$' \
|
|
||||||
halt='Do not attempt to right-align backslashes' \
|
halt='Do not attempt to right-align backslashes' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
@ -1487,9 +1486,6 @@ exclude_file_name_regexp--sc_prohibit_dirent_d_type = \
|
|||||||
exclude_file_name_regexp--sc_prohibit_strcmp = \
|
exclude_file_name_regexp--sc_prohibit_strcmp = \
|
||||||
^(tools/nss/libvirt_nss.*\.c|tools/virt-login-shell\.c)
|
^(tools/nss/libvirt_nss.*\.c|tools/virt-login-shell\.c)
|
||||||
|
|
||||||
exclude_file_name_regexp--sc_prohibit_backslash_alignment = \
|
|
||||||
^build-aux/syntax-check\.mk$$
|
|
||||||
|
|
||||||
exclude_file_name_regexp--sc_prohibit_select = \
|
exclude_file_name_regexp--sc_prohibit_select = \
|
||||||
^build-aux/syntax-check\.mk|src/util/vireventglibwatch\.c|tests/meson\.build$$
|
^build-aux/syntax-check\.mk|src/util/vireventglibwatch\.c|tests/meson\.build$$
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user