Browse Source

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 <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
ec1779e0e3
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      android/qt6/res/mipmap-anydpi-v26/ic_launcher.xml
  2. 2
      cmake/Modules/FindCM256cc.cmake
  3. 2
      cmake/Modules/FindCodec2.cmake
  4. 2
      cmake/Modules/FindFFmpeg.cmake
  5. 2
      cmake/Modules/FindLibMbe.cmake
  6. 2
      cmake/Modules/FindLibXTRX.cmake
  7. 2
      cmake/Modules/FindLimeSuite.cmake
  8. 2
      cmake/Modules/FindOpus.cmake
  9. 2
      cmake/Modules/FindSerialDV.cmake
  10. 2
      cmake/include/uninstall.cmake.in
  11. 2
      debian/compat
  12. 2
      debian/source/format
  13. 2
      doc/model/SDRAngel.mdj
  14. 2
      json_udp_data_format.readme.md
  15. 2
      logging/readme.md
  16. 2
      modemm17/M17FrameDecoder.h
  17. 2
      plugins/channelrx/demodadsb/sideviews/ReadMe.txt
  18. 2
      plugins/channelrx/demoddatv/datvcstlnlut.h
  19. 2
      plugins/channelrx/remotetcpsink/remotetcpsinksettingsdialog.cpp
  20. 2
      plugins/feature/sid/icons/solar-orbiter.svg
  21. 2
      plugins/feature/startracker/spiceephemerides.cpp
  22. 2
      scriptsapi/requirements.txt
  23. 2
      sdrbase/resources/webapi/index.html
  24. 2
      swagger/docker/compose/login.sh
  25. 2
      swagger/docker/server/run.sh
  26. 2
      swagger/sdrangel/api/swagger/include/CWKeyer.yaml

2
android/qt6/res/mipmap-anydpi-v26/ic_launcher.xml

@ -2,4 +2,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/> <background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon> </adaptive-icon>

2
cmake/Modules/FindCM256cc.cmake

@ -53,4 +53,4 @@ if (NOT CM256CC_FOUND)
INCLUDE(FindPackageHandleStandardArgs) INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CM256CC DEFAULT_MSG CM256CC_LIBRARIES CM256CC_INCLUDE_DIR) FIND_PACKAGE_HANDLE_STANDARD_ARGS(CM256CC DEFAULT_MSG CM256CC_LIBRARIES CM256CC_INCLUDE_DIR)
MARK_AS_ADVANCED(CM256CC_LIBRARIES CM256CC_INCLUDE_DIR) MARK_AS_ADVANCED(CM256CC_LIBRARIES CM256CC_INCLUDE_DIR)
endif (NOT CM256CC_FOUND) endif (NOT CM256CC_FOUND)

2
cmake/Modules/FindCodec2.cmake

@ -53,4 +53,4 @@ if (NOT CODEC2_FOUND)
INCLUDE(FindPackageHandleStandardArgs) INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CODEC2 DEFAULT_MSG CODEC2_LIBRARIES CODEC2_INCLUDE_DIR) FIND_PACKAGE_HANDLE_STANDARD_ARGS(CODEC2 DEFAULT_MSG CODEC2_LIBRARIES CODEC2_INCLUDE_DIR)
MARK_AS_ADVANCED(CODEC2_LIBRARIES CODEC2_INCLUDE_DIR) MARK_AS_ADVANCED(CODEC2_LIBRARIES CODEC2_INCLUDE_DIR)
endif (NOT CODEC2_FOUND) endif (NOT CODEC2_FOUND)

2
cmake/Modules/FindFFmpeg.cmake

@ -148,4 +148,4 @@ foreach (_component ${FFmpeg_FIND_COMPONENTS})
endforeach () endforeach ()
# Give a nice error message if some of the required vars are missing. # Give a nice error message if some of the required vars are missing.
find_package_handle_standard_args(FFmpeg DEFAULT_MSG ${_FFmpeg_REQUIRED_VARS}) find_package_handle_standard_args(FFmpeg DEFAULT_MSG ${_FFmpeg_REQUIRED_VARS})

2
cmake/Modules/FindLibMbe.cmake

@ -31,4 +31,4 @@ if (NOT LIBMBE_FOUND)
endif (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES) endif (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES)
mark_as_advanced(LIBMBE_INCLUDE_DIR LIBMBE_LIBRARIES) mark_as_advanced(LIBMBE_INCLUDE_DIR LIBMBE_LIBRARIES)
endif (NOT LIBMBE_FOUND) endif (NOT LIBMBE_FOUND)

2
cmake/Modules/FindLibXTRX.cmake

@ -31,4 +31,4 @@ if(NOT LIBXTRX_FOUND)
mark_as_advanced(LIBXTRX_INCLUDE_DIRS LIBXTRX_LIBRARY) mark_as_advanced(LIBXTRX_INCLUDE_DIRS LIBXTRX_LIBRARY)
endif(NOT LIBXTRX_FOUND) endif(NOT LIBXTRX_FOUND)

2
cmake/Modules/FindLimeSuite.cmake

@ -31,4 +31,4 @@ if (NOT LIMESUITE_FOUND)
endif (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY) endif (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
mark_as_advanced(LIMESUITE_INCLUDE_DIR LIMESUITE_LIBRARY) mark_as_advanced(LIMESUITE_INCLUDE_DIR LIMESUITE_LIBRARY)
endif (NOT LIMESUITE_FOUND) endif (NOT LIMESUITE_FOUND)

2
cmake/Modules/FindOpus.cmake

@ -49,4 +49,4 @@ find_package_handle_standard_args(Opus
OPUS_INCLUDE_DIRS OPUS_LIBRARIES HAVE_OPUS_OPUS_H OPUS_INCLUDE_DIRS OPUS_LIBRARIES HAVE_OPUS_OPUS_H
) )
mark_as_advanced(OPUS_INCLUDE_DIRS OPUS_LIBRARIES HAVE_OPUS_OPUS_H) mark_as_advanced(OPUS_INCLUDE_DIRS OPUS_LIBRARIES HAVE_OPUS_OPUS_H)

2
cmake/Modules/FindSerialDV.cmake

@ -31,4 +31,4 @@ if (NOT LIBSERIALDV_FOUND)
endif (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY) endif (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY)
mark_as_advanced(LIBSERIALDV_INCLUDE_DIR LIBSERIALDV_LIBRARY) mark_as_advanced(LIBSERIALDV_INCLUDE_DIR LIBSERIALDV_LIBRARY)
endif (NOT LIBSERIALDV_FOUND) endif (NOT LIBSERIALDV_FOUND)

2
cmake/include/uninstall.cmake.in

@ -18,4 +18,4 @@ foreach(file ${files})
else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
message(STATUS "File $ENV{DESTDIR}${file} does not exist.") message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
endforeach(file) endforeach(file)

2
debian/compat vendored

@ -1 +1 @@
10 10

2
debian/source/format vendored

@ -1 +1 @@
3.0 (quilt) 3.0 (quilt)

2
doc/model/SDRAngel.mdj

@ -32722,4 +32722,4 @@
"visibility": "public" "visibility": "public"
} }
] ]
} }

2
json_udp_data_format.readme.md

@ -173,4 +173,4 @@
... ...
"payload_hex": "ffffffff363e0c47..." "payload_hex": "ffffffff363e0c47..."
} }
} }

2
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 API documentation](http://stefanfrings.de/qtwebapp/api/index.html)
- [Link to tutorial](http://stefanfrings.de/qtwebapp/tutorial/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 Some changes have been made to support the option of having a console logging plus optional file logging

2
modemm17/M17FrameDecoder.h

@ -407,4 +407,4 @@ struct M17FrameDecoder
State state() const { return state_; } State state() const { return state_; }
}; };
} // modemm17 } // modemm17

2
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 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 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 existing flag data sets, allowing the users of those third party products to have operator flags
automatically appear. automatically appear.

2
plugins/channelrx/demoddatv/datvcstlnlut.h

@ -191,4 +191,4 @@ static cstln_lut<llr_ss, 256> * make_dvbs2_constellation(
} }
#endif // DATV_CSTLN_LUT_H #endif // DATV_CSTLN_LUT_H

2
plugins/channelrx/remotetcpsink/remotetcpsinksettingsdialog.cpp

@ -384,4 +384,4 @@ void RemoteTCPSinkSettingsDialog::updateRotatorList(const AvailableChannelOrFeat
ui->rotator->blockSignals(false); ui->rotator->blockSignals(false);
displayEnabled(); displayEnabled();
} }

2
plugins/feature/sid/icons/solar-orbiter.svg

@ -27,4 +27,4 @@
<rect class="cls-2" x="60.18" y="47.77" width="9.94" height="2.08" rx="1.04" ry="1.04"/> <rect class="cls-2" x="60.18" y="47.77" width="9.94" height="2.08" rx="1.04" ry="1.04"/>
<rect class="cls-2" x="32.21" y="17.72" width="9.94" height="2.08" rx="1.04" ry="1.04" transform="translate(18.42 55.94) rotate(-90)"/> <rect class="cls-2" x="32.21" y="17.72" width="9.94" height="2.08" rx="1.04" ry="1.04" transform="translate(18.42 55.94) rotate(-90)"/>
<rect class="cls-2" x="31.17" y="77.82" width="9.94" height="2.08" rx="1.04" ry="1.04" transform="translate(-42.72 115) rotate(-90)"/> <rect class="cls-2" x="31.17" y="77.82" width="9.94" height="2.08" rx="1.04" ry="1.04" transform="translate(-42.72 115) rotate(-90)"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

2
plugins/feature/startracker/spiceephemerides.cpp

@ -144,4 +144,4 @@ QStringList SpiceEphemerides::getTargets(const QStringList &emphemeridesURLs)
targets.removeDuplicates(); targets.removeDuplicates();
return targets; return targets;
} }

2
scriptsapi/requirements.txt

@ -3,4 +3,4 @@ Flask
numpy numpy
websockets websockets
websocket-client websocket-client
mock mock

2
sdrbase/resources/webapi/index.html

@ -49,4 +49,4 @@
<p>Click on links on the left for various types of documentation</p> <p>Click on links on the left for various types of documentation</p>
</body> </body>
</html> </html>

2
swagger/docker/compose/login.sh

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
docker exec -it sdrangel_swgcodegen /bin/bash docker exec -it sdrangel_swgcodegen /bin/bash

2
swagger/docker/server/run.sh

@ -48,4 +48,4 @@ docker run -it --rm \
--name ${container_name} \ --name ${container_name} \
${http_port} \ ${http_port} \
-v="/opt/build/sdrangel:/opt/build/sdrangel:rw" \ -v="/opt/build/sdrangel:/opt/build/sdrangel:rw" \
${image_name}:${image_tag} ${image_name}:${image_tag}

2
swagger/sdrangel/api/swagger/include/CWKeyer.yaml

@ -43,4 +43,4 @@ CWKeyerSettings:
dashKeyModifiers: dashKeyModifiers:
description: > 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. 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 type: integer

Loading…
Cancel
Save