libvirt/build-aux
Michal Privoznik ead76d2ac7 syntax-check: Introduce a rule for one line error messages
Okay, this is a shortcut. Our coding style says that error
messages are exempt from '80 chars long lines' rule. But in the
very same paragraph it is said that all error messages need to be
marked for translation (as they might be presented to user).

Therefore, the syntax-check rule can check if _("...") is
formatted on one line. With exception of _("...\n" ...) (e.g.
various outputs from helper binaries like leaseshelper,
sshhelper, or daemons like lockd, logd). I believe nobody would
chose a substring that contains '\n' for git grep-ping the error
message.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2023-09-04 12:14:54 +02:00
..
Makefile.in syntax-check: Detect awk the same as all other programs 2022-05-24 11:09:46 +02:00
Makefile.nonreentrant meson: add syntax-check 2020-08-03 09:27:06 +02:00
check-spacing.pl syntax-check: Don't forbid curly braces around single line condition body 2020-09-15 15:20:23 +02:00
meson.build meson: Replace external_program.path() with external_program.full_path() 2022-10-10 15:06:09 +02:00
syntax-check.mk syntax-check: Introduce a rule for one line error messages 2023-09-04 12:14:54 +02:00