mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +03:00
REUSE: move copyright headers to .checksrc
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
This commit is contained in:
parent
dee72fe31e
commit
5e74b2df34
6 changed files with 22 additions and 5 deletions
|
|
@ -39,11 +39,6 @@ path = [
|
||||||
"tests/certs/**",
|
"tests/certs/**",
|
||||||
"tests/data/test**",
|
"tests/data/test**",
|
||||||
"tests/valgrind.supp",
|
"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-FileCopyrightText = "Daniel Stenberg, <daniel@haxx.se>, et al."
|
||||||
SPDX-License-Identifier = "curl"
|
SPDX-License-Identifier = "curl"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: curl
|
||||||
|
|
||||||
allowfunc fclose
|
allowfunc fclose
|
||||||
allowfunc fdopen
|
allowfunc fdopen
|
||||||
allowfunc fopen
|
allowfunc fopen
|
||||||
|
|
@ -11,6 +15,8 @@ allowfunc socket
|
||||||
allowfunc sscanf
|
allowfunc sscanf
|
||||||
allowfunc strerror
|
allowfunc strerror
|
||||||
allowfunc vsnprintf
|
allowfunc vsnprintf
|
||||||
|
|
||||||
|
# Use of curl printf functions is discouraged
|
||||||
banfunc curl_maprintf
|
banfunc curl_maprintf
|
||||||
banfunc curl_mfprintf
|
banfunc curl_mfprintf
|
||||||
banfunc curl_mprintf
|
banfunc curl_mprintf
|
||||||
|
|
|
||||||
|
|
@ -1 +1,5 @@
|
||||||
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: curl
|
||||||
|
|
||||||
allowfunc printf
|
allowfunc printf
|
||||||
|
|
|
||||||
|
|
@ -202,6 +202,10 @@ sub readlocalfile {
|
||||||
if(/^\s*(#.*)/) {
|
if(/^\s*(#.*)/) {
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
# Skip empty lines
|
||||||
|
elsif($_ eq '') {
|
||||||
|
next;
|
||||||
|
}
|
||||||
elsif(/^enable ([A-Z]+)$/) {
|
elsif(/^enable ([A-Z]+)$/) {
|
||||||
if(!defined($warnings_extended{$1})) {
|
if(!defined($warnings_extended{$1})) {
|
||||||
print STDERR "invalid warning specified in .checksrc: \"$1\"\n";
|
print STDERR "invalid warning specified in .checksrc: \"$1\"\n";
|
||||||
|
|
|
||||||
|
|
@ -1 +1,5 @@
|
||||||
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: curl
|
||||||
|
|
||||||
enable STDERR
|
enable STDERR
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: curl
|
||||||
|
|
||||||
allowfunc accept
|
allowfunc accept
|
||||||
allowfunc fclose
|
allowfunc fclose
|
||||||
allowfunc fopen
|
allowfunc fopen
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue