libvirt/build-aux
Peter Krempa 654486bd57 syntax-check: sc_avoid_write: Don't use blanket file exceptions
Adding an exception for the whole file usually defeats the purpose of a
syntax check and is also likely to get forgotten once the file is
removed.

In case of the suggestion of using 'safewrite' instead of write even the
comment for safewrite states that the function needs to be used only in
certain cases.

Remove the blanket exceptions for files and use an exclude string
instead. The only instance where we keep the full file exception is for
src/libvirt-stream.c as there are multiple uses in example code in
comments where I couldn't find a nicer targetted wapproach.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2022-02-15 09:32:23 +01:00
..
check-spacing.pl syntax-check: Don't forbid curly braces around single line condition body 2020-09-15 15:20:23 +02:00
Makefile.in meson: Check GNU sed's availability 2021-04-01 14:14:28 +02:00
Makefile.nonreentrant meson: add syntax-check 2020-08-03 09:27:06 +02:00
meson.build meson: Explicitly specify run_command's check parameter 2022-01-24 09:54:35 +01:00
syntax-check.mk syntax-check: sc_avoid_write: Don't use blanket file exceptions 2022-02-15 09:32:23 +01:00