chore: Enable more clang-tidy checks (#3054)

This commit is contained in:
Alex Kremer
2026-05-01 15:31:45 +01:00
committed by GitHub
parent d6bae6c12b
commit 51244feb4a
239 changed files with 1150 additions and 733 deletions

View File

@@ -119,6 +119,7 @@ WebServerSslSyncClient::connect(std::string const& host, std::string const& port
void
WebServerSslSyncClient::disconnect()
{
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
ws_->close(boost::beast::websocket::close_code::normal);
}
@@ -126,8 +127,8 @@ std::string
WebServerSslSyncClient::syncPost(std::string const& body)
{
boost::beast::flat_buffer buffer;
ws_->write(net::buffer(std::string(body)));
ws_->read(buffer);
ws_->write(net::buffer(std::string(body))); // NOLINT(bugprone-unchecked-optional-access)
ws_->read(buffer); // NOLINT(bugprone-unchecked-optional-access)
return boost::beast::buffers_to_string(buffer.data());
}