[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 1/9] qemu-binfmt-conf.sh: enforce safe style consistency
From: |
Eric Blake |
Subject: |
Re: [PATCH v8 1/9] qemu-binfmt-conf.sh: enforce safe style consistency |
Date: |
Mon, 9 Mar 2020 10:01:10 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 3/7/20 11:22 AM, Unai Martinez-Corral wrote:
Spaces are added before '; then', for consistency.
For consistency with what? This is not our prevailing style; as
evidenced by this pre-patch search:
$ git grep 'if \[.*\];' | wc
274 2186 18170
$ git grep 'if \[.*\] ;' | wc
25 256 1573
and you are diverging from the dominant pattern.
All the tests are prefixed with 'x', in order to avoid risky comparisons
(i.e. a user deliberately trying to provoke a syntax error).
This part, however, is good. Since one part is controversial, you may
want to split this into two patches, or even drop the reformatting part.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org