mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
spacecheck: check long lines and repeat spaces, fix fallouts
Verify if lines are not longer than 192 characters. Also verify if lines have less than 79 repeat spaces (and fix one fallout). To improve readability by avoiding long lines and to prevent adding overly long lines with text that may go unnoticed in an editor or diff viewer. In addition to pre-existing line length limits: 79 for C, 132 for CMake sources. Also: - spacecheck: fix/harden allowlist regexes. - spacecheck: tidy-up quotes and simplify escaping. - spacecheck: allow folding strings with repeat spaces. - GHA: fix a suppressed shellcheck warning. - GHA/macos: simplify by dropping brew bundle. - test1119.pl: precompile a regex. - FAQ.md: delete very long link to a Windows 7/2008 support article that's lost it relevance. Closes #21087
This commit is contained in:
parent
ff3251a538
commit
62d77b12fc
28 changed files with 468 additions and 179 deletions
|
|
@ -1345,7 +1345,8 @@ dnl
|
|||
|
||||
AC_DEFUN([CURL_TRACE_PCDIR], [
|
||||
dnl Example pkgconf line:
|
||||
dnl libpkgconf/pkg.c:746 [pkgconf_pkg_t *pkgconf_pkg_try_specific_path(pkgconf_client_t *, [...]*)]: trying path: /usr/local/lib/pkgconfig for libngtcp2_crypto_gnutls
|
||||
dnl libpkgconf/pkg.c:746 [pkgconf_pkg_t *pkgconf_pkg_try_specific_path(pkgconf_client_t *, [...]*)]:
|
||||
dnl trying path: /usr/local/lib/pkgconfig for libngtcp2_crypto_gnutls
|
||||
dnl Rest of strings are for catching classic pkg-config lines.
|
||||
trc=`CURL_EXPORT_PCDIR([$2], [$3])
|
||||
if test -n "$PKG_CONFIG_LIBDIR"; then
|
||||
|
|
@ -1354,7 +1355,9 @@ AC_DEFUN([CURL_TRACE_PCDIR], [
|
|||
if test -n "$PKG_CONFIG_PATH"; then
|
||||
echo "PKG_CONFIG_PATH: '$PKG_CONFIG_PATH'"
|
||||
fi
|
||||
$PKGCONFIG --exists --debug $1 2>&1 | $EGREP '(trying path:|Adding directory|Looking for|Scanning directory|Cannot open directory)' | $SED 's/^.*trying path:/trying path:/'`
|
||||
$PKGCONFIG --exists --debug $1 2>&1 | \
|
||||
$EGREP '(trying path:|Adding directory|Looking for|Scanning directory|Cannot open directory)' | \
|
||||
$SED 's/^.*trying path:/trying path:/'`
|
||||
msg=`CURL_EXPORT_PCDIR([$2], [$3])
|
||||
$PKGCONFIG --exists --print-errors $1 2>&1`
|
||||
if test -n "$msg"; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue