[PATCH v2 0/7] scripts/checkpatch: refactor & fix SPDX-License-Identifier detection

Daniel P. Berrangé posted 7 patches 6 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250512182447.1139105-1-berrange@redhat.com
scripts/checkpatch.pl | 365 ++++++++++++++++++++++++++----------------
1 file changed, 227 insertions(+), 138 deletions(-)
[PATCH v2 0/7] scripts/checkpatch: refactor & fix SPDX-License-Identifier detection
Posted by Daniel P. Berrangé 6 months, 1 week ago
This is hugely expanded an update of

  https://lists.nongnu.org/archive/html/qemu-devel/2025-05/msg02040.html

In that series, Peter suggested creating standalone methods to act
as hooks to call when detecting the start/end of a file in a diff.

This implements that idea and adapts a number of existing checks
to use the new hooks.

Daniel P. Berrangé (7):
  Revert "scripts: mandate that new files have SPDX-License-Identifier"
  scripts/checkpatch.pl: fix various indentation mistakes
  scripts/checkpatch: introduce tracking of file start/end
  scripts/checkpatch: use new hook for ACPI test data check
  scripts/checkpatch: use new hook for file permissions check
  scripts/checkpatch: use new hook for MAINTAINERS update check
  scripts/checkpatch: reimplement mandate for SPDX-License-Identifier

 scripts/checkpatch.pl | 365 ++++++++++++++++++++++++++----------------
 1 file changed, 227 insertions(+), 138 deletions(-)

-- 
2.49.0