Fix clang-tidy NOLINT placement for s_sta_state

Move the NOLINT comment to NOLINTNEXTLINE so clang-tidy sees it
on the line with the variable declaration, not the continuation.
This commit is contained in:
J. Nick Koston
2026-03-29 18:09:49 -10:00
parent f43a598a83
commit 438553ccfe
@@ -53,8 +53,8 @@ enum class ESP8266WiFiSTAState : uint8_t {
ERROR_FAILED, // Connection failed (auth, timeout, etc.)
};
static ESP8266WiFiSTAState s_sta_state =
ESP8266WiFiSTAState::IDLE; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
static ESP8266WiFiSTAState s_sta_state = ESP8266WiFiSTAState::IDLE;
bool WiFiComponent::wifi_mode_(optional<bool> sta, optional<bool> ap) {
uint8_t current_mode = wifi_get_opmode();