From 15bf66c9207c64c13f2cceab8301f3f1f2baf9c2 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Wed, 15 May 2024 13:03:22 +0100 Subject: [PATCH] pre-commit: Add more trailing spaces and empty line at end of file checks --- .pre-commit-config.yaml | 4 +--- AUTHORS | 2 +- CONTRIBUTE | 1 - HOWTO.dual.gnutls | 1 - HOWTO.dual.openssl | 1 - HOWTO.dual.softhsm2 | 1 - Makefile.am | 1 - README.md | 1 - TODO | 1 - cmake/FindwolfSSL.cmake | 2 +- examples/README.etsi_iot | 1 - examples/riot/README | 2 +- examples/share.libcoap.examples.README | 2 -- man/coap-tls-engine-conf.txt.in | 2 +- tests/test_common.h.in | 1 - win32/coap-rd/coap-rd.vcxproj.filters | 2 +- win32/coap-server/coap-server.vcxproj.filters | 2 +- win32/install/install.vcxproj.filters | 2 +- win32/testdriver/testdriver.vcxproj.user | 2 +- 19 files changed, 9 insertions(+), 22 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 27978554..fe7893d7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/igrr/astyle_py.git - rev: v1.0.4 + rev: v1.0.5 hooks: - id: astyle_py files: '^.*\.(c|cpp|cxx|h|h.in|h.riot|h.riot.in|h.windows|h.windows.in|h.contiki|hpp|inc)$' @@ -27,7 +27,5 @@ repos: rev: v4.3.0 hooks: - id: trailing-whitespace - types_or: [c, c++] - id: end-of-file-fixer - types_or: [c, c++] - id: check-merge-conflict diff --git a/AUTHORS b/AUTHORS index d59fb868..33cce82c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,4 +5,4 @@ Jean-Claude Michelou Christian Amsüss For additional contributors, see -https://github.com/obgm/libcoap/graphs/contributors \ No newline at end of file +https://github.com/obgm/libcoap/graphs/contributors diff --git a/CONTRIBUTE b/CONTRIBUTE index 31c886a1..66f40004 100644 --- a/CONTRIBUTE +++ b/CONTRIBUTE @@ -274,4 +274,3 @@ programming person available. Do you want to write up something? * Missing functionality There are some features that are still missing inside the libcoap. For example some DTLS implementations and proxy functionality. - diff --git a/HOWTO.dual.gnutls b/HOWTO.dual.gnutls index e2fc0e19..8dea5191 100644 --- a/HOWTO.dual.gnutls +++ b/HOWTO.dual.gnutls @@ -95,4 +95,3 @@ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --libdir=/usr/lib64 \ make sudo make install cd .. - diff --git a/HOWTO.dual.openssl b/HOWTO.dual.openssl index 6168c3ed..766c8c81 100644 --- a/HOWTO.dual.openssl +++ b/HOWTO.dual.openssl @@ -47,4 +47,3 @@ PKG_CONFIG_PATH=/opt/openssl/lib/pkgconfig ./configure --libdir=/usr/lib64 \ make sudo make install cd .. - diff --git a/HOWTO.dual.softhsm2 b/HOWTO.dual.softhsm2 index 2eee889a..2b8f119d 100644 --- a/HOWTO.dual.softhsm2 +++ b/HOWTO.dual.softhsm2 @@ -87,4 +87,3 @@ cd .. # Verify that pkcs11 is available /opt/openssl/bin/openssl engine pkcs11 -t - diff --git a/Makefile.am b/Makefile.am index 75a4596e..194f67a5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -379,4 +379,3 @@ dist-local: update-map-file ## Finaly some phony targets, just to ensure those targets are always buildable ## no matter if the user has created same called files. .PHONY: update-map-file check_ctags - diff --git a/README.md b/README.md index e05bf7cf..f68c29e2 100644 --- a/README.md +++ b/README.md @@ -96,4 +96,3 @@ include open-source software with their respective licensing terms. Please refer to [LICENSE](https://raw.githubusercontent.com/obgm/libcoap/develop/LICENSE) for further details. - diff --git a/TODO b/TODO index 52df83af..2c3e994a 100644 --- a/TODO +++ b/TODO @@ -24,4 +24,3 @@ Classification of issues: * MINOR ISSUES ============== -> Adding a logo for libcoap - diff --git a/cmake/FindwolfSSL.cmake b/cmake/FindwolfSSL.cmake index dc1a2104..7726ba46 100644 --- a/cmake/FindwolfSSL.cmake +++ b/cmake/FindwolfSSL.cmake @@ -83,4 +83,4 @@ endif() message(STATUS "WOLFSSL_INCLUDE_DIR: ${WOLFSSL_INCLUDE_DIR}") message(STATUS "WOLFSSL_LIBRARIES: ${WOLFSSL_LIBRARIES}") -message(STATUS "WOLFSSL_ROOT_DIR: ${WOLFSSL_ROOT_DIR}") \ No newline at end of file +message(STATUS "WOLFSSL_ROOT_DIR: ${WOLFSSL_ROOT_DIR}") diff --git a/examples/README.etsi_iot b/examples/README.etsi_iot index 5d37a58f..0ac1a901 100644 --- a/examples/README.etsi_iot +++ b/examples/README.etsi_iot @@ -40,4 +40,3 @@ Optional Tests [-] TD_COAP_OBS_03 Client detection of deregistration (Max-Age) [-] TD_COAP_OBS_04 Server detection of deregistration (client OFF) [-] TD_COAP_OBS_05 Server detection of deregistration (explicit RST) - diff --git a/examples/riot/README b/examples/riot/README index d963abd5..40dcb973 100644 --- a/examples/riot/README +++ b/examples/riot/README @@ -11,7 +11,7 @@ This will * update the RIOT environment with pkg/libcoap, examples/libcoap-client and examples/libcoap-server taken from pkg_libcoap/, examples_client/ and examples_server respectively/. - (updates RIOT's libcoap code to the latest commited version in your + (updates RIOT's libcoap code to the latest commited version in your environment). * build the client application * build the server application diff --git a/examples/share.libcoap.examples.README b/examples/share.libcoap.examples.README index f4b586cc..590c49fb 100644 --- a/examples/share.libcoap.examples.README +++ b/examples/share.libcoap.examples.README @@ -5,5 +5,3 @@ The provided code is the same as used to build the installed binaries coap-client and coap-server. Simply 'cd' into this directory and then run 'make' to build the executables. - - diff --git a/man/coap-tls-engine-conf.txt.in b/man/coap-tls-engine-conf.txt.in index e955d2ce..e92d9528 100644 --- a/man/coap-tls-engine-conf.txt.in +++ b/man/coap-tls-engine-conf.txt.in @@ -66,7 +66,7 @@ The possible keywords are: usually is enforced by the ENGINE. *enable-methods* :: - + _parameter_1_ is the numeric value of the or'd set of required ENGINE_METHOD_* or ENGINE_METHOD_ALL. _parameter_1_ can be an ascii representation of a number or formated as 0xXXXX. _parameter_2_ is ignored. diff --git a/tests/test_common.h.in b/tests/test_common.h.in index f1de4382..622bf9fb 100644 --- a/tests/test_common.h.in +++ b/tests/test_common.h.in @@ -12,4 +12,3 @@ #define COAP_THREAD_IGNORE_LOCKED_MAPPING #include "coap@LIBCOAP_API_VERSION@/coap_internal.h" - diff --git a/win32/coap-rd/coap-rd.vcxproj.filters b/win32/coap-rd/coap-rd.vcxproj.filters index 0f4136fb..3b7089ad 100644 --- a/win32/coap-rd/coap-rd.vcxproj.filters +++ b/win32/coap-rd/coap-rd.vcxproj.filters @@ -19,4 +19,4 @@ Source Files - \ No newline at end of file + diff --git a/win32/coap-server/coap-server.vcxproj.filters b/win32/coap-server/coap-server.vcxproj.filters index 9c67e677..81a4b901 100644 --- a/win32/coap-server/coap-server.vcxproj.filters +++ b/win32/coap-server/coap-server.vcxproj.filters @@ -19,4 +19,4 @@ Source Files - \ No newline at end of file + diff --git a/win32/install/install.vcxproj.filters b/win32/install/install.vcxproj.filters index 6a1782f7..e5cb0c55 100644 --- a/win32/install/install.vcxproj.filters +++ b/win32/install/install.vcxproj.filters @@ -14,4 +14,4 @@ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - \ No newline at end of file + diff --git a/win32/testdriver/testdriver.vcxproj.user b/win32/testdriver/testdriver.vcxproj.user index 9a8c7297..5d10e673 100644 --- a/win32/testdriver/testdriver.vcxproj.user +++ b/win32/testdriver/testdriver.vcxproj.user @@ -40,4 +40,4 @@ $(OutDir) PATH=$(InstallDir)bin - \ No newline at end of file +