scripts/spdxcheck: Better statistics and exclude handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | scripts/spdxcheck: Add percentage to statisticsscripts/ | +3 | 0 replies | |
| 2/9 | scripts/spdxcheck: Add directory statisticsscripts/ | +27 | 0 replies | |
| 3/9 | scripts/spdxcheck: Add [sub]directory statisticsscripts/ | +57 | 0 replies | |
| 4/9 | scripts/spdxcheck: Add option to display files without SPDXscripts/ | +19 | 0 replies | |
| 5/9 | scripts/spdxcheck: Put excluded files and directories into a separate filescripts/ scripts/ | +72 | 0 replies | |
| 6/9 | scripts/spdxcheck: Exclude config directoriesscripts/ | +5 | 0 replies | |
| 7/9 | scripts/spdxcheck: Exclude MAINTAINERS/CREDITSscripts/ | +4 | 0 replies | |
| 8/9 | scripts/spdxcheck: Exclude dot filesscripts/ | +6 | 3 replies | |
| 9/9 | scripts/spdxcheck: Exclude top-level READMEscripts/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch 0/9] scripts/spdxcheck: Better statistics and exclude handling
spdxcheck -v output is just providing basic statistics, but lacks per directory statistics.
Finding files without SPDX identifiers is cumbersome with spdxcheck, though it has all the information required.
The exclude of files and directories is hardcoded in the script which makes it hard to maintain and the information cannot be accessed by external tools.
The following series addresses this by adding:
1) Directory statistics
Incomplete directories: SPDX in Files
./ : 6 of 13 46%
./Documentation : 4096 of 8451 48%
./arch : 13476 of 16402 82%
./block : 100 of 101 99%
./certs : 11 of 14 78%
./crypto : 145 of 176 82%
./drivers : 24682 of 30745 80%
2) The ability to show files without SPDX
Files without SPDX:
./kernel/cpu.c
./kernel/kmod.c
./kernel/relay.c3) A file based handling for exclude patterns
Thanks,
tglx