~whynothugo/vdirsyncer-rs#34: 
Check that all files have an SDPX header

Do this via CI to keep an eye on it. It's very easy to add a new file and forget.

Status
REPORTED
Submitter
~whynothugo
Assigned to
No-one
Submitted
1 year, 2 months ago
Updated
1 year, 2 months ago
Labels
No labels applied.

~whynothugo 1 year, 2 months ago

A single ag run should work, but: https://github.com/ggreer/the_silver_searcher/issues/964#issuecomment-1625721711

reuse tries to do too much IMHO, including enforcing a specific project structure and locale: https://github.com/fsfe/reuse-tool/pull/794

~whynothugo 1 year, 2 months ago

Something like grep -rL SPDX is a nice and simple approach, but it will traverse into target and .git.

~whynothugo 1 year, 2 months ago

Oh, fd | xargs grep -rL SPDX works. Just need to ignore the obvious exception: LICENCE (or rather, check that it's the only result).

Register here or Log in to comment, or comment via email.