diff --git a/.gersemirc b/.gersemirc index d102ccb5a4..9d9238b7cc 100644 --- a/.gersemirc +++ b/.gersemirc @@ -1,6 +1,4 @@ -color: false definitions: [cmake/modules] line_length: 100 list_expansion: favour-inlining -quiet: false unsafe: false diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index d37a62e7f9..938405e552 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -36,7 +36,7 @@ jobs: - name: Install wpiformat run: | python -m venv ${{ runner.temp }}/wpiformat - ${{ runner.temp }}/wpiformat/bin/pip3 install wpiformat==2025.33 + ${{ runner.temp }}/wpiformat/bin/pip3 install wpiformat==2025.34 - name: Run run: ${{ runner.temp }}/wpiformat/bin/wpiformat - name: Check output @@ -78,7 +78,7 @@ jobs: - name: Install wpiformat run: | python -m venv ${{ runner.temp }}/wpiformat - ${{ runner.temp }}/wpiformat/bin/pip3 install wpiformat==2025.33 + ${{ runner.temp }}/wpiformat/bin/pip3 install wpiformat==2025.34 - name: Create compile_commands.json run: | ./gradlew generateCompileCommands -Ptoolchain-optional-roboRio diff --git a/cscore/src/main/native/cpp/MjpegServerImpl.cpp b/cscore/src/main/native/cpp/MjpegServerImpl.cpp index 5ce5c39a52..e303ca54da 100644 --- a/cscore/src/main/native/cpp/MjpegServerImpl.cpp +++ b/cscore/src/main/native/cpp/MjpegServerImpl.cpp @@ -773,8 +773,7 @@ void MjpegServerImpl::ConnThread::SendStream(wpi::raw_socket_ostream& os) { lastFrameTime = thisFrameTime; double timestamp = lastFrameTime / 1000000.0; header.clear(); - oss << "\r\n--" BOUNDARY "\r\n" - << "Content-Type: image/jpeg\r\n"; + oss << "\r\n--" BOUNDARY "\r\n" << "Content-Type: image/jpeg\r\n"; wpi::print(oss, "Content-Length: {}\r\n", size); wpi::print(oss, "X-Timestamp: {}\r\n", timestamp); oss << "\r\n"; diff --git a/hal/src/main/native/athena/CTREPCM.cpp b/hal/src/main/native/athena/CTREPCM.cpp index 4c104da5e6..d1be2ff23c 100644 --- a/hal/src/main/native/athena/CTREPCM.cpp +++ b/hal/src/main/native/athena/CTREPCM.cpp @@ -398,8 +398,9 @@ void HAL_SetCTREPCMOneShotDuration(HAL_CTREPCMHandle handle, int32_t index, } std::scoped_lock lock{pcm->lock}; - pcm->oneShot.sol10MsPerUnit[index] = (std::min)( - static_cast(durMs) / 10, static_cast(0xFF)); + pcm->oneShot.sol10MsPerUnit[index] = + (std::min)(static_cast(durMs) / 10, + static_cast(0xFF)); HAL_WriteCANPacketRepeating(pcm->canHandle, pcm->oneShot.sol10MsPerUnit, 8, Control3, SendPeriod, status); } diff --git a/hal/src/main/native/include/hal/simulation/SimCallbackRegistry.h b/hal/src/main/native/include/hal/simulation/SimCallbackRegistry.h index dc753175b4..fc8191bf08 100644 --- a/hal/src/main/native/include/hal/simulation/SimCallbackRegistry.h +++ b/hal/src/main/native/include/hal/simulation/SimCallbackRegistry.h @@ -102,7 +102,7 @@ class SimCallbackRegistry : public impl::SimCallbackRegistryBase { */ #define HAL_SIMCALLBACKREGISTRY_DEFINE_NAME(NAME) \ static LLVM_ATTRIBUTE_ALWAYS_INLINE constexpr const char* \ - Get##NAME##Name() { \ + Get##NAME##Name() { \ return #NAME; \ } diff --git a/hal/src/main/native/include/hal/simulation/SimDataValue.h b/hal/src/main/native/include/hal/simulation/SimDataValue.h index 8c909fae28..69270075fd 100644 --- a/hal/src/main/native/include/hal/simulation/SimDataValue.h +++ b/hal/src/main/native/include/hal/simulation/SimDataValue.h @@ -127,7 +127,7 @@ class SimDataValue final : public impl::SimDataValueBase { */ #define HAL_SIMDATAVALUE_DEFINE_NAME(NAME) \ static LLVM_ATTRIBUTE_ALWAYS_INLINE constexpr const char* \ - Get##NAME##Name() { \ + Get##NAME##Name() { \ return #NAME; \ } diff --git a/ntcore/src/main/native/cpp/net3/WireDecoder3.cpp b/ntcore/src/main/native/cpp/net3/WireDecoder3.cpp index dea6349b01..8c2fbf3175 100644 --- a/ntcore/src/main/native/cpp/net3/WireDecoder3.cpp +++ b/ntcore/src/main/native/cpp/net3/WireDecoder3.cpp @@ -334,9 +334,9 @@ std::optional> WireDecoder3::ReadRaw( } // string data - size_t toCopy = (std::min)( - static_cast(in->size()), - static_cast(m_rawReader.len.value() - m_rawReader.buf.size())); + size_t toCopy = (std::min)(static_cast(in->size()), + static_cast(m_rawReader.len.value() - + m_rawReader.buf.size())); m_rawReader.buf.insert(m_rawReader.buf.end(), in->begin(), in->begin() + toCopy); *in = wpi::drop_front(*in, toCopy); diff --git a/wpimath/src/main/native/include/units/math.h b/wpimath/src/main/native/include/units/math.h index a5cf357b5f..727aee62fb 100644 --- a/wpimath/src/main/native/include/units/math.h +++ b/wpimath/src/main/native/include/units/math.h @@ -482,11 +482,10 @@ constexpr dimensionless::scalar_t log2(const ScalarUnit x) noexcept { template < class UnitType, std::enable_if_t::value, int> = 0> -inline constexpr auto sqrt(const UnitType& value) noexcept - -> unit_t< - square_root::unit_type>, - typename units::traits::unit_t_traits::underlying_type, - linear_scale> { +inline constexpr auto sqrt(const UnitType& value) noexcept -> unit_t< + square_root::unit_type>, + typename units::traits::unit_t_traits::underlying_type, + linear_scale> { return unit_t< square_root::unit_type>, typename units::traits::unit_t_traits::underlying_type, @@ -742,8 +741,8 @@ template ::value && traits::is_unit_t::value && traits::is_unit_t::value>> -auto fma(const UnitTypeLhs x, const UnitMultiply y, - const UnitAdd z) noexcept -> decltype(x * y) { +auto fma(const UnitTypeLhs x, const UnitMultiply y, const UnitAdd z) noexcept + -> decltype(x * y) { using resultType = decltype(x * y); static_assert( traits::is_convertible_unit_t<