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 committed 2026-11-23 17:17:45 +03:00
1 parent 558d52fa9b
commit dc72966aca
7 files changed
+24 -17

No files matched your search

+5 -4
View File
@@ -1,17 +1,18 @@
#pragma once
#include <Arduino.h>
#include <esp_log.h>
#include <errno.h>
#include <esp_log.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <functional>
#include <math.h>
#include <mutex>
#include <optional>
#include <string>
#include <string_view>
#include <stdlib.h>
#include <string.h>
#include "macros.h"
#include "utils.h"
+2 -1
View File
@@ -4,9 +4,10 @@
#include <esp_arduino_version.h>
#include <esp_heap_caps.h>
#include <esp_timer.h>
#include <mutex>
#include <stdint.h>
#include <mutex>
struct HeapMetrics : multi_heap_info_t {
size_t total;
size_t minLargestBlock = SIZE_MAX;
+3 -2
View File
@@ -1,12 +1,13 @@
#pragma once
#include <Arduino.h>
#include <cmath>
#include <stdio.h>
#include <string>
#include <string.h>
#include <time.h>
#include <cmath>
#include <string>
#include "types.h"
inline std::string getChipId(const char* prefix = nullptr, const char* suffix = nullptr) {