Check for license information parity #36
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: canary/canary-rs#36
Loading…
Reference in New Issue
No description provided.
Delete Branch ":main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add dependency check for check_licenses.shto Add fallback if rg(1) is not in the $PATHLooks great, thanks.
@ -5,0 +10,4 @@
# check if we have rg(1); if not, use find(1) and sed(1) instead
if ! command -v rg >/dev/null 2>&1; then
files="$(find "$PWD" -name "$1")"
This includes false positive generated Rust source files (i.e. from the wayland-protocols crate) in the
target/
directory, sotarget/
needs to be excluded from the search path.@ -5,0 +13,4 @@
files="$(find "$PWD" -name "$1")"
for file in $files; do
if ! test -n \
"$(sed -n '\|// SPDX-License-Identifier: .*|p' <"$file")"
You need to test for the
// Copyright (c) 2022 Marceline Cramer
copyright holder line at the beginning too.@ -5,0 +19,4 @@
fi
done
else
rg --multiline --files-without-match --glob "$1" --pcre2 \
If you hate ripgrep this much you can go ahead and ditch support for it if you want.
Add fallback if rg(1) is not in the $PATHto Check for license information parityThis looks great, thank you very much. :)