Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scripts/spdxcheck: Add count of missing files to stats output

Add a count of files missing an SPDX header to the stats
output. This is useful detailed information for working
on SPDX header additions.

Signed-off-by: Tim Bird <tim.bird@sony.com>
Link: https://lore.kernel.org/r/SA3PR13MB6372DB9F9F2C09F8A1E1B99BFD1A2@SA3PR13MB6372.namprd13.prod.outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bird, Tim and committed by
Greg Kroah-Hartman
5015f8a5 82fecafe

+3
+3
scripts/spdxcheck.py
··· 412 412 if parser.checked: 413 413 pc = int(100 * parser.spdx_valid / parser.checked) 414 414 sys.stderr.write('Files with SPDX: %12d %3d%%\n' %(parser.spdx_valid, pc)) 415 + missing = parser.checked - parser.spdx_valid 416 + mpc = int(100 * missing / parser.checked) 417 + sys.stderr.write('Files without SPDX:%12d %3d%%\n' %(missing, mpc)) 415 418 sys.stderr.write('Files with errors: %12d\n' %parser.spdx_errors) 416 419 if ndirs: 417 420 sys.stderr.write('\n')