style: resolve cpplint warnings in firmware sources

Place C headers before C++ headers in sensor, metrics, utility and
application sources.

Document the owned cache of the applied MQTT prefix and suppress
runtime/string only for this variable. Preserve MQTT reconfiguration
and prefix buffer cleanup.

Validated with cpplint 2.0.2 over include, lib and src using CI filters.
This commit is contained in:
Yurii authored and Yurii committed 2026-11-23 19:25:37 +03:00
1 parent 97ac190bef
commit 7e6408ac75
7 files changed
+24 -17

No files matched your search

+3 -1
View File
@@ -21,7 +21,9 @@
std::mutex mqttMutex;
static MQTT* mqttClient = nullptr;
static std::string mqttPrefix;
// Keep the applied prefix separate from settings until MQTT is reconfigured.
static std::string mqttPrefix; // NOLINT(runtime/string)
static std::atomic<unsigned long> mqttConnectedAt{0};
static unsigned long mqttPublishedSensorAt[SENSORS_AMOUNT] = {};