lordgamez commented on code in PR #1671:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1671#discussion_r1341498042


##########
extensions/expression-language/tests/ExpressionLanguageTests.cpp:
##########
@@ -1321,13 +1321,13 @@ TEST_CASE("Now Date", "[expressionNowDate]") {
 TEST_CASE("Parse RFC3339 with Expression Language toDate") {
   using date::sys_days;
   using org::apache::nifi::minifi::utils::timeutils::parseRfc3339;
-  using namespace date::literals;
+  using namespace date::literals;  // NOLINT(google-build-using-namespace)
   using namespace std::literals::chrono_literals;
   using std::chrono::milliseconds;
 
-  milliseconds expected_second = 
std::chrono::floor<milliseconds>((sys_days(2023_y / 03 / 01) + 19h + 04min + 
55s).time_since_epoch());
-  milliseconds expected_tenth_second = 
std::chrono::floor<milliseconds>((sys_days(2023_y / 03 / 01) + 19h + 04min + 
55s + 100ms).time_since_epoch());
-  milliseconds expected_milli_second = 
std::chrono::floor<milliseconds>((sys_days(2023_y / 03 / 01) + 19h + 04min + 
55s + 190ms).time_since_epoch());
+  milliseconds expected_second = 
std::chrono::floor<milliseconds>((sys_days{2023_y / 03 / 01} + 19h + 04min + 
55s).time_since_epoch());  // NOLINT(whitespace/braces)
+  milliseconds expected_tenth_second = 
std::chrono::floor<milliseconds>((sys_days{2023_y / 03 / 01} + 19h + 04min + 
55s + 100ms).time_since_epoch());  // NOLINT(whitespace/braces)
+  milliseconds expected_milli_second = 
std::chrono::floor<milliseconds>((sys_days{2023_y / 03 / 01} + 19h + 04min + 
55s + 190ms).time_since_epoch());  // NOLINT(whitespace/braces)

Review Comment:
   Reverted in b1d4a35c9a2021f2bd8d0fa750e2f2971f635cae



##########
extensions/standard-processors/processors/PutTCP.cpp:
##########
@@ -215,7 +215,7 @@ asio::awaitable<std::error_code> 
ConnectionHandler<SocketType>::establishNewConn
       continue;
     }
     if (max_size_of_socket_send_buffer_)
-      
socket.lowest_layer().set_option(TcpSocket::send_buffer_size(*max_size_of_socket_send_buffer_));
+      
socket.lowest_layer().set_option(TcpSocket::send_buffer_size(*max_size_of_socket_send_buffer_));
  // NOLINT(google-readability-casting)

Review Comment:
   Removed in b1d4a35c9a2021f2bd8d0fa750e2f2971f635cae



##########
extensions/systemd/tests/ConsumeJournaldTest.cpp:
##########
@@ -90,7 +90,7 @@ struct TestJournal final : libwrapper::Journal {
   }
 
   int getCursor(gsl::owner<char*>* const cursor_out) noexcept override {
-    *cursor_out = gsl::owner<char*>(strdup(std::to_string(consumed).c_str()));
+    *cursor_out = strdup(std::to_string(consumed).c_str());  // 
NOLINT(cppcoreguidelines-owning-memory)

Review Comment:
   Reverted in b1d4a35c9a2021f2bd8d0fa750e2f2971f635cae



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to