[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/7] tests: introduce tree-wide code style checking
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v2 1/7] tests: introduce tree-wide code style checking |
Date: |
Thu, 7 Jul 2022 17:43:29 +0100 |
User-agent: |
Mutt/2.2.6 (2022-06-05) |
On Mon, Jul 04, 2022 at 04:46:53PM +0100, Peter Maydell wrote:
> On Mon, 4 Jul 2022 at 16:23, Daniel P. Berrangé <berrange@redhat.com> wrote:
> >
> > Historically QEMU has used the 'scripts/checkpatch.pl' script to
> > validate various style rules but there are a number of issues:
>
> > meson.build | 3 +
> > tests/Makefile.include | 3 +-
> > tests/meson.build | 19 +++
> > tests/style-excludes.mak | 4 +
> > tests/style-infra.mak | 265 +++++++++++++++++++++++++++++++++++++++
> > tests/style.mak | 24 ++++
>
> From my point of view the main issue with checkpatch.pl is
> that nobody in the QEMU developers particularly understands
> it or is enthusiastic about trying to add more tests to it
> or adjust the existing ones where QEMU style diverges from
> the kernel style (but nor are we tracking and upgrading to
> newer versions of the kernel's script).
>
> This seems to be aiming to replace a complex and hard to
> understand perl script with a complex and hard to understand
> makefile. I can't say I'm terribly enthusiastic :-/
Taking that feedback on board, I've proposed a new version which is
written in Python, and uses a plain yaml config file, which I admit
results in an easier to understand and more attractive impl than
this makefile based one.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH v2 0/7] tests: introduce a tree-wide code style checking facility, Daniel P . Berrangé, 2022/07/04
- [PATCH v2 1/7] tests: introduce tree-wide code style checking, Daniel P . Berrangé, 2022/07/04
- [PATCH v2 3/7] tests/style: check for mixups of bool constants with int variables, Daniel P . Berrangé, 2022/07/04
- [PATCH v2 2/7] misc: fix mixups of bool constants with int variables, Daniel P . Berrangé, 2022/07/04
- [PATCH v2 5/7] tests/style: check for commonly doubled up words, Daniel P . Berrangé, 2022/07/04
- [PATCH v2 4/7] misc: fix commonly doubled up words, Daniel P . Berrangé, 2022/07/04
- [PATCH v2 7/7] tests/style: check qemu/osdep.h is included in all .c files, Daniel P . Berrangé, 2022/07/04