1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-17 04:22:32 +03:00

checksrc: switch to dot file

Closes #1052
This commit is contained in:
Viktor Szakats
2023-05-30 12:19:30 +00:00
parent 1c3f1b7da5
commit d67a91aa10
3 changed files with 8 additions and 16 deletions

4
.checksrc Normal file
View File

@@ -0,0 +1,4 @@
disable COPYRIGHT
disable FOPENMODE
disable SNPRINTF
disable TYPEDEFSTRUCT

View File

@@ -81,9 +81,5 @@ coverage: init-coverage build-coverage gen-coverage
checksrc:
perl ci/checksrc.pl -i4 -m79 \
-ASNPRINTF \
-ACOPYRIGHT \
-AFOPENMODE \
-ATYPEDEFSTRUCT \
-Wsrc/libssh2_config.h src/*.[ch] include/*.h example/*.c \
tests/*.[ch]
-Wsrc/libssh2_config.h \
src/*.[ch] include/*.h example/*.c tests/*.[ch]

View File

@@ -4,14 +4,6 @@ set -e
cd "$(dirname "$0")/.."
FILES="src/*.[ch] include/*.h example/*.c tests/*.[ch]"
WHITELIST="-Wsrc/libssh2_config.h"
# shellcheck disable=SC2086
# shellcheck disable=SC2248
perl ./ci/checksrc.pl -i4 -m79 \
-ASNPRINTF \
-ACOPYRIGHT \
-AFOPENMODE \
-ATYPEDEFSTRUCT \
$WHITELIST $FILES
-Wsrc/libssh2_config.h \
src/*.[ch] include/*.h example/*.c tests/*.[ch]