fix: Handle null payloads. #2123
Annotations
12 warnings and 6 notices
|
|
|
/libs/server-sdk/src/data_systems/background_sync/sources/streaming/streaming_data_source.cpp:99:54 [cppcoreguidelines-avoid-magic-numbers:
/libs/server-sdk/src/data_systems/background_sync/sources/streaming/streaming_data_source.cpp#L99
5 is a magic number; consider replacing it with a named constant
|
|
/libs/server-sdk/src/data_systems/background_sync/sources/streaming/streaming_data_source.cpp:45:27 [readability-function-cognitive-complexity]:
/libs/server-sdk/src/data_systems/background_sync/sources/streaming/streaming_data_source.cpp#L45
function 'StartAsync' has cognitive complexity of 28 (threshold 25)
|
|
|
|
|
|
|
|
|
|
/libs/server-sdk/src/data_systems/background_sync/sources/streaming/event_handler.cpp:139:5 [bugprone-easily-swappable-parameters]:
/libs/server-sdk/src/data_systems/background_sync/sources/streaming/event_handler.cpp#L139
2 adjacent parameters of 'HandleMessage' of similar type ('const std::string &') are easily swapped by mistake
|
|
/libs/server-sdk/src/data_systems/background_sync/sources/streaming/event_handler.cpp:53:69 [readability-function-cognitive-complexity]:
/libs/server-sdk/src/data_systems/background_sync/sources/streaming/event_handler.cpp#L53
function 'tag_invoke' has cognitive complexity of 37 (threshold 25)
|
|
|
|
cpp-linter
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0OvQEaQAAAABlvVyIR1PTSpmkpX49xJ8+Q0hJMzBFREdFMDIxNwBFZGdl
|
|
cpp-linter
Failed to restore: Cache service responded with 400
|
|
Run clang-format on libs/server-sent-events/src/curl_client.hpp:
libs/server-sent-events/src/curl_client.hpp#L0
File libs/server-sent-events/src/curl_client.hpp does not conform to Custom style guidelines. (lines 5, 40, 41, 42, 43, 44, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 68, 69, 70, 71, 72, 73, 74, 75, 76, 85, 107, 109, 119, 129, 149, 164, 165, 198, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 224, 227, 250, 254, 261, 265, 269, 270, 271, 277, 303)
|
|
Run clang-format on libs/server-sent-events/src/curl_client.cpp:
libs/server-sent-events/src/curl_client.cpp#L0
File libs/server-sent-events/src/curl_client.cpp does not conform to Custom style guidelines. (lines 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 59, 60, 61, 63, 64, 80, 81, 82, 83, 84, 85, 86, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 157, 165, 179, 180, 186, 201, 202, 203, 204, 205, 206, 207, 208, 209, 232, 248, 291, 327, 335, 336, 352, 353, 357, 371, 379, 400, 421, 427, 430, 442, 455, 456, 457, 458, 459, 461, 462, 463, 464, 465, 466, 467, 468, 470, 471, 473, 474, 475, 477, 478, 479, 482, 483, 484, 486, 487, 488, 489, 490, 491, 492, 494, 495, 496, 497, 498, 500, 501, 502, 503, 504, 505, 506, 507, 509, 510, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 527, 528, 529, 530, 531, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 544, 545, 546, 547, 548, 549, 550, 554, 555, 556, 560, 575, 576, 577, 580)
|
|
Run clang-format on libs/server-sent-events/src/client.cpp:
libs/server-sent-events/src/client.cpp#L0
File libs/server-sent-events/src/client.cpp does not conform to Custom style guidelines. (lines 669, 670, 671, 672, 673, 674, 675)
|
|
Run clang-format on libs/server-sent-events/include/launchdarkly/sse/client.hpp:
libs/server-sent-events/include/launchdarkly/sse/client.hpp#L0
File libs/server-sent-events/include/launchdarkly/sse/client.hpp does not conform to Custom style guidelines. (lines 164, 167, 168, 170, 172, 216)
|
|
Run clang-format on libs/server-sdk/tests/data_source_event_handler_test.cpp:
libs/server-sdk/tests/data_source_event_handler_test.cpp#L0
File libs/server-sdk/tests/data_source_event_handler_test.cpp does not conform to Custom style guidelines. (lines 221, 243, 261, 274, 431, 447, 461, 473, 474)
|
|
Run clang-format on libs/server-sdk/src/data_systems/background_sync/sources/streaming/streaming_data_source.cpp:
libs/server-sdk/src/data_systems/background_sync/sources/streaming/streaming_data_source.cpp#L0
File libs/server-sdk/src/data_systems/background_sync/sources/streaming/streaming_data_source.cpp does not conform to Custom style guidelines. (lines 132, 137)
|