]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
REUSE: move copyright headers to `.checksrc`
authorViktor Szakats <commit@vsz.me>
Sat, 11 Oct 2025 08:48:23 +0000 (10:48 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 13 Oct 2025 09:54:22 +0000 (11:54 +0200)
To make it simpler to move them around, create and delete them without
syncing with `REUSE.toml`.

Also:
- checksrc: allow empty lines in `.checksrc`.
- comment on why curl printfs are disallowed in examples.

Closes #19024

REUSE.toml
docs/examples/.checksrc
scripts/.checksrc
scripts/checksrc.pl
src/.checksrc
tests/server/.checksrc

index d3b98edb4879c9cada4addf0043fedbc6285617a..40531913af3b515c5503a7f8f905d6763059f681 100644 (file)
@@ -39,11 +39,6 @@ path = [
   "tests/certs/**",
   "tests/data/test**",
   "tests/valgrind.supp",
-  # checksrc control files
-  "docs/examples/.checksrc",
-  "scripts/.checksrc",
-  "src/.checksrc",
-  "tests/server/.checksrc",
 ]
 SPDX-FileCopyrightText = "Daniel Stenberg, <daniel@haxx.se>, et al."
 SPDX-License-Identifier = "curl"
index c81d1597681dfc982be823267d92ca77bf977e65..e35dccc7261d77982ea99400f9316147293edb06 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+#
+# SPDX-License-Identifier: curl
+
 allowfunc fclose
 allowfunc fdopen
 allowfunc fopen
@@ -11,6 +15,8 @@ allowfunc socket
 allowfunc sscanf
 allowfunc strerror
 allowfunc vsnprintf
+
+# Use of curl printf functions is discouraged
 banfunc curl_maprintf
 banfunc curl_mfprintf
 banfunc curl_mprintf
index 84d62d2b750c73d89de3e34e3742bbbc0d951b37..03e98fee8925b27ea878eb4b9cb339664dddf637 100644 (file)
@@ -1 +1,5 @@
+# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+#
+# SPDX-License-Identifier: curl
+
 allowfunc printf
index 5a8c80ebfe5bb8647e9528fdcdce40fef3c32b39..c424924e45724f1a75344a265b58a3b935674877 100755 (executable)
@@ -202,6 +202,10 @@ sub readlocalfile {
         if(/^\s*(#.*)/) {
             next;
         }
+        # Skip empty lines
+        elsif($_ eq '') {
+            next;
+        }
         elsif(/^enable ([A-Z]+)$/) {
             if(!defined($warnings_extended{$1})) {
                 print STDERR "invalid warning specified in .checksrc: \"$1\"\n";
index 946367c4999f6f2961afc23db1d2bfb4211b2443..bc97c06028daafa121e195906c609a422f3102bf 100644 (file)
@@ -1 +1,5 @@
+# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+#
+# SPDX-License-Identifier: curl
+
 enable STDERR
index d4be12473ac49e0ae10affa05452071ba570dae7..a4e094e1c9136429c1638d6cdd3ea68e36c6676d 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+#
+# SPDX-License-Identifier: curl
+
 allowfunc accept
 allowfunc fclose
 allowfunc fopen