From ec1779e0e324bf9b7b29f9f00abaee8b1c2f49ed Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sun, 27 Sep 2026 17:43:08 -0400 Subject: [PATCH] repowide: Add missing final newlines to text files Add a terminating LF to tracked text files that were missing a newline at end of file. This avoids Codacy whitespace failures and ensures text files conform to the repository line-ending policy. Affected files were identified and fixed with the following script. It checks all tracked files against .gitattributes, skips files marked as binary or -text, and reports the final 32 bytes of any non-empty text file that does not end with LF before adding the missing newline. git ls-files -z | while IFS= read -r -d '' f; do attr=$(git check-attr text -- "$f") case "$attr" in "$f: text: unset"|"$f: text: unspecified") continue ;; esac [ -f "$f" ] || continue [ -s "$f" ] || continue [ "$(tail -c 1 -- "$f" | od -An -t x1 | tr -d ' \n')" = "0a" ] || { printf '%s\n' "$f" tail -c 32 -- "$f" | hexdump -C printf '\n' >> "$f" } done Signed-off-by: Robin Getz --- android/qt6/res/mipmap-anydpi-v26/ic_launcher.xml | 2 +- cmake/Modules/FindCM256cc.cmake | 2 +- cmake/Modules/FindCodec2.cmake | 2 +- cmake/Modules/FindFFmpeg.cmake | 2 +- cmake/Modules/FindLibMbe.cmake | 2 +- cmake/Modules/FindLibXTRX.cmake | 2 +- cmake/Modules/FindLimeSuite.cmake | 2 +- cmake/Modules/FindOpus.cmake | 2 +- cmake/Modules/FindSerialDV.cmake | 2 +- cmake/include/uninstall.cmake.in | 2 +- debian/compat | 2 +- debian/source/format | 2 +- doc/model/SDRAngel.mdj | 2 +- json_udp_data_format.readme.md | 2 +- logging/readme.md | 2 +- modemm17/M17FrameDecoder.h | 2 +- plugins/channelrx/demodadsb/sideviews/ReadMe.txt | 2 +- plugins/channelrx/demoddatv/datvcstlnlut.h | 2 +- plugins/channelrx/remotetcpsink/remotetcpsinksettingsdialog.cpp | 2 +- plugins/feature/sid/icons/solar-orbiter.svg | 2 +- plugins/feature/startracker/spiceephemerides.cpp | 2 +- scriptsapi/requirements.txt | 2 +- sdrbase/resources/webapi/index.html | 2 +- swagger/docker/compose/login.sh | 2 +- swagger/docker/server/run.sh | 2 +- swagger/sdrangel/api/swagger/include/CWKeyer.yaml | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/android/qt6/res/mipmap-anydpi-v26/ic_launcher.xml b/android/qt6/res/mipmap-anydpi-v26/ic_launcher.xml index fcd3a1e20..ec59d6ec5 100644 --- a/android/qt6/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/android/qt6/res/mipmap-anydpi-v26/ic_launcher.xml @@ -2,4 +2,4 @@ - \ No newline at end of file + diff --git a/cmake/Modules/FindCM256cc.cmake b/cmake/Modules/FindCM256cc.cmake index b7b0b2a22..3cb90ca64 100644 --- a/cmake/Modules/FindCM256cc.cmake +++ b/cmake/Modules/FindCM256cc.cmake @@ -53,4 +53,4 @@ if (NOT CM256CC_FOUND) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(CM256CC DEFAULT_MSG CM256CC_LIBRARIES CM256CC_INCLUDE_DIR) MARK_AS_ADVANCED(CM256CC_LIBRARIES CM256CC_INCLUDE_DIR) -endif (NOT CM256CC_FOUND) \ No newline at end of file +endif (NOT CM256CC_FOUND) diff --git a/cmake/Modules/FindCodec2.cmake b/cmake/Modules/FindCodec2.cmake index de1bc91b3..c9257b4f5 100644 --- a/cmake/Modules/FindCodec2.cmake +++ b/cmake/Modules/FindCodec2.cmake @@ -53,4 +53,4 @@ if (NOT CODEC2_FOUND) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(CODEC2 DEFAULT_MSG CODEC2_LIBRARIES CODEC2_INCLUDE_DIR) MARK_AS_ADVANCED(CODEC2_LIBRARIES CODEC2_INCLUDE_DIR) -endif (NOT CODEC2_FOUND) \ No newline at end of file +endif (NOT CODEC2_FOUND) diff --git a/cmake/Modules/FindFFmpeg.cmake b/cmake/Modules/FindFFmpeg.cmake index 0d741c4ba..abe9595fe 100644 --- a/cmake/Modules/FindFFmpeg.cmake +++ b/cmake/Modules/FindFFmpeg.cmake @@ -148,4 +148,4 @@ foreach (_component ${FFmpeg_FIND_COMPONENTS}) endforeach () # Give a nice error message if some of the required vars are missing. -find_package_handle_standard_args(FFmpeg DEFAULT_MSG ${_FFmpeg_REQUIRED_VARS}) \ No newline at end of file +find_package_handle_standard_args(FFmpeg DEFAULT_MSG ${_FFmpeg_REQUIRED_VARS}) diff --git a/cmake/Modules/FindLibMbe.cmake b/cmake/Modules/FindLibMbe.cmake index 28638a576..98014e980 100644 --- a/cmake/Modules/FindLibMbe.cmake +++ b/cmake/Modules/FindLibMbe.cmake @@ -31,4 +31,4 @@ if (NOT LIBMBE_FOUND) endif (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES) mark_as_advanced(LIBMBE_INCLUDE_DIR LIBMBE_LIBRARIES) -endif (NOT LIBMBE_FOUND) \ No newline at end of file +endif (NOT LIBMBE_FOUND) diff --git a/cmake/Modules/FindLibXTRX.cmake b/cmake/Modules/FindLibXTRX.cmake index 8bcd8286a..5154c2503 100644 --- a/cmake/Modules/FindLibXTRX.cmake +++ b/cmake/Modules/FindLibXTRX.cmake @@ -31,4 +31,4 @@ if(NOT LIBXTRX_FOUND) mark_as_advanced(LIBXTRX_INCLUDE_DIRS LIBXTRX_LIBRARY) -endif(NOT LIBXTRX_FOUND) \ No newline at end of file +endif(NOT LIBXTRX_FOUND) diff --git a/cmake/Modules/FindLimeSuite.cmake b/cmake/Modules/FindLimeSuite.cmake index 2aafa2fbe..541d68e42 100644 --- a/cmake/Modules/FindLimeSuite.cmake +++ b/cmake/Modules/FindLimeSuite.cmake @@ -31,4 +31,4 @@ if (NOT LIMESUITE_FOUND) endif (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY) mark_as_advanced(LIMESUITE_INCLUDE_DIR LIMESUITE_LIBRARY) -endif (NOT LIMESUITE_FOUND) \ No newline at end of file +endif (NOT LIMESUITE_FOUND) diff --git a/cmake/Modules/FindOpus.cmake b/cmake/Modules/FindOpus.cmake index 2ec4281dc..b3b82345c 100644 --- a/cmake/Modules/FindOpus.cmake +++ b/cmake/Modules/FindOpus.cmake @@ -49,4 +49,4 @@ find_package_handle_standard_args(Opus OPUS_INCLUDE_DIRS OPUS_LIBRARIES HAVE_OPUS_OPUS_H ) -mark_as_advanced(OPUS_INCLUDE_DIRS OPUS_LIBRARIES HAVE_OPUS_OPUS_H) \ No newline at end of file +mark_as_advanced(OPUS_INCLUDE_DIRS OPUS_LIBRARIES HAVE_OPUS_OPUS_H) diff --git a/cmake/Modules/FindSerialDV.cmake b/cmake/Modules/FindSerialDV.cmake index 6d6862699..a0787a91c 100644 --- a/cmake/Modules/FindSerialDV.cmake +++ b/cmake/Modules/FindSerialDV.cmake @@ -31,4 +31,4 @@ if (NOT LIBSERIALDV_FOUND) endif (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY) mark_as_advanced(LIBSERIALDV_INCLUDE_DIR LIBSERIALDV_LIBRARY) -endif (NOT LIBSERIALDV_FOUND) \ No newline at end of file +endif (NOT LIBSERIALDV_FOUND) diff --git a/cmake/include/uninstall.cmake.in b/cmake/include/uninstall.cmake.in index 2c34c8199..2037e3653 100644 --- a/cmake/include/uninstall.cmake.in +++ b/cmake/include/uninstall.cmake.in @@ -18,4 +18,4 @@ foreach(file ${files}) else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") message(STATUS "File $ENV{DESTDIR}${file} does not exist.") endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") -endforeach(file) \ No newline at end of file +endforeach(file) diff --git a/debian/compat b/debian/compat index 9a037142a..f599e28b8 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -10 \ No newline at end of file +10 diff --git a/debian/source/format b/debian/source/format index 46ebe0266..163aaf8d8 100644 --- a/debian/source/format +++ b/debian/source/format @@ -1 +1 @@ -3.0 (quilt) \ No newline at end of file +3.0 (quilt) diff --git a/doc/model/SDRAngel.mdj b/doc/model/SDRAngel.mdj index 13dac666c..e4a3648e2 100644 --- a/doc/model/SDRAngel.mdj +++ b/doc/model/SDRAngel.mdj @@ -32722,4 +32722,4 @@ "visibility": "public" } ] -} \ No newline at end of file +} diff --git a/json_udp_data_format.readme.md b/json_udp_data_format.readme.md index cf27676ba..cdd1ceff6 100644 --- a/json_udp_data_format.readme.md +++ b/json_udp_data_format.readme.md @@ -173,4 +173,4 @@ ... "payload_hex": "ffffffff363e0c47..." } - } \ No newline at end of file + } diff --git a/logging/readme.md b/logging/readme.md index 8b6af9220..c3f34c31a 100644 --- a/logging/readme.md +++ b/logging/readme.md @@ -6,4 +6,4 @@ This is based on the logging part of QtWebApp from Stefan Frings - [Link to API documentation](http://stefanfrings.de/qtwebapp/api/index.html) - [Link to tutorial](http://stefanfrings.de/qtwebapp/tutorial/index.html) -Some changes have been made to support the option of having a console logging plus optional file logging \ No newline at end of file +Some changes have been made to support the option of having a console logging plus optional file logging diff --git a/modemm17/M17FrameDecoder.h b/modemm17/M17FrameDecoder.h index 2656350b4..ed9c033b7 100644 --- a/modemm17/M17FrameDecoder.h +++ b/modemm17/M17FrameDecoder.h @@ -407,4 +407,4 @@ struct M17FrameDecoder State state() const { return state_; } }; -} // modemm17 \ No newline at end of file +} // modemm17 diff --git a/plugins/channelrx/demodadsb/sideviews/ReadMe.txt b/plugins/channelrx/demodadsb/sideviews/ReadMe.txt index 8f54542ed..b998ad1df 100644 --- a/plugins/channelrx/demodadsb/sideviews/ReadMe.txt +++ b/plugins/channelrx/demodadsb/sideviews/ReadMe.txt @@ -15,4 +15,4 @@ Note: We do not envisage users typically entering these codes using this interfa have provided this feature so that those existing third party applications that use BaseStation’s database interface to write registration data into the database can write in flag codes matching existing flag data sets, allowing the users of those third party products to have operator flags -automatically appear. \ No newline at end of file +automatically appear. diff --git a/plugins/channelrx/demoddatv/datvcstlnlut.h b/plugins/channelrx/demoddatv/datvcstlnlut.h index ac9888398..1ddc6a36f 100644 --- a/plugins/channelrx/demoddatv/datvcstlnlut.h +++ b/plugins/channelrx/demoddatv/datvcstlnlut.h @@ -191,4 +191,4 @@ static cstln_lut * make_dvbs2_constellation( } -#endif // DATV_CSTLN_LUT_H \ No newline at end of file +#endif // DATV_CSTLN_LUT_H diff --git a/plugins/channelrx/remotetcpsink/remotetcpsinksettingsdialog.cpp b/plugins/channelrx/remotetcpsink/remotetcpsinksettingsdialog.cpp index 0b45356aa..76a0ff391 100644 --- a/plugins/channelrx/remotetcpsink/remotetcpsinksettingsdialog.cpp +++ b/plugins/channelrx/remotetcpsink/remotetcpsinksettingsdialog.cpp @@ -384,4 +384,4 @@ void RemoteTCPSinkSettingsDialog::updateRotatorList(const AvailableChannelOrFeat ui->rotator->blockSignals(false); displayEnabled(); -} \ No newline at end of file +} diff --git a/plugins/feature/sid/icons/solar-orbiter.svg b/plugins/feature/sid/icons/solar-orbiter.svg index 6c5373978..981e951b9 100644 --- a/plugins/feature/sid/icons/solar-orbiter.svg +++ b/plugins/feature/sid/icons/solar-orbiter.svg @@ -27,4 +27,4 @@ - \ No newline at end of file + diff --git a/plugins/feature/startracker/spiceephemerides.cpp b/plugins/feature/startracker/spiceephemerides.cpp index 4b1e6fcec..883608f5e 100644 --- a/plugins/feature/startracker/spiceephemerides.cpp +++ b/plugins/feature/startracker/spiceephemerides.cpp @@ -144,4 +144,4 @@ QStringList SpiceEphemerides::getTargets(const QStringList &emphemeridesURLs) targets.removeDuplicates(); return targets; -} \ No newline at end of file +} diff --git a/scriptsapi/requirements.txt b/scriptsapi/requirements.txt index 836866ef8..4ee2b5db6 100644 --- a/scriptsapi/requirements.txt +++ b/scriptsapi/requirements.txt @@ -3,4 +3,4 @@ Flask numpy websockets websocket-client -mock \ No newline at end of file +mock diff --git a/sdrbase/resources/webapi/index.html b/sdrbase/resources/webapi/index.html index a64e4c92d..65b017f78 100644 --- a/sdrbase/resources/webapi/index.html +++ b/sdrbase/resources/webapi/index.html @@ -49,4 +49,4 @@

Click on links on the left for various types of documentation

- \ No newline at end of file + diff --git a/swagger/docker/compose/login.sh b/swagger/docker/compose/login.sh index 4d2a973ee..94b68283d 100755 --- a/swagger/docker/compose/login.sh +++ b/swagger/docker/compose/login.sh @@ -1,2 +1,2 @@ #!/bin/bash -docker exec -it sdrangel_swgcodegen /bin/bash \ No newline at end of file +docker exec -it sdrangel_swgcodegen /bin/bash diff --git a/swagger/docker/server/run.sh b/swagger/docker/server/run.sh index a3a331e32..064e73156 100755 --- a/swagger/docker/server/run.sh +++ b/swagger/docker/server/run.sh @@ -48,4 +48,4 @@ docker run -it --rm \ --name ${container_name} \ ${http_port} \ -v="/opt/build/sdrangel:/opt/build/sdrangel:rw" \ - ${image_name}:${image_tag} \ No newline at end of file + ${image_name}:${image_tag} diff --git a/swagger/sdrangel/api/swagger/include/CWKeyer.yaml b/swagger/sdrangel/api/swagger/include/CWKeyer.yaml index 662d6ec6a..023f7b18e 100644 --- a/swagger/sdrangel/api/swagger/include/CWKeyer.yaml +++ b/swagger/sdrangel/api/swagger/include/CWKeyer.yaml @@ -43,4 +43,4 @@ CWKeyerSettings: dashKeyModifiers: description: > Modifiers for the dash key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier. - type: integer \ No newline at end of file + type: integer