From 8bdf87aae87442fe1e1107f30f31a41c900dd1a0 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Fri, 9 Aug 2024 21:11:21 +0200 Subject: [PATCH] clang-tidy --- esphome/components/bedjet/bedjet_codec.h | 2 +- platformio.ini | 1 + script/clang-tidy | 38 +++++++++++------------- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/esphome/components/bedjet/bedjet_codec.h b/esphome/components/bedjet/bedjet_codec.h index 527e757d7f..07aee32d54 100644 --- a/esphome/components/bedjet/bedjet_codec.h +++ b/esphome/components/bedjet/bedjet_codec.h @@ -90,7 +90,7 @@ struct BedjetStatusPacket { int unused_6 : 1; // 0x4 bool is_dual_zone : 1; /// Is part of a Dual Zone configuration int unused_7 : 1; // 0x1 - } dual_zone_flags; + } dual_zone_flags; // NOLINT(clang-diagnostic-unaligned-access) uint8_t unused_4 : 8; // Unknown 23-24 = 0x1310 uint8_t unused_5 : 8; // Unknown 23-24 = 0x1310 diff --git a/platformio.ini b/platformio.ini index 4c4e2164c3..48d813ba64 100644 --- a/platformio.ini +++ b/platformio.ini @@ -199,6 +199,7 @@ lib_deps = bblanchon/ArduinoJson@7.0.0 ; json wjtje/qr-code-generator-library@1.7.0 ; qr_code lvgl/lvgl@8.4.0 ; lvgl + pavlodn/HaierProtocol@0.9.31 ; haier ; All the actual environments are defined below. diff --git a/script/clang-tidy b/script/clang-tidy index 0662028b1b..fc588a9706 100755 --- a/script/clang-tidy +++ b/script/clang-tidy @@ -241,33 +241,29 @@ def main(): if "zephyr" in triplet: exclude_components = [ "api", - "web_server_base", - "web_server", - "prometheus", - "captive_portal", - "socket", - "voice_assistant", - "homeassistant", "bluetooth_proxy", - "wake_on_lan", - "esphome", + "captive_portal", "e131", - "haier", - "improv_serial", - "md5", - "mlx90393", - "online_image", - "sgp4x", - "wireguard", - "tuya", - "status", - "nextion", - "improv_base", + "esphome", + "homeassistant", "http_request", + "improv_base", + "improv_serial", # FIXME + "md5", # FIXME + "mlx90393", # FIXME + "online_image", "ota", + "prometheus", + "sgp4x", # FIXME + "socket", + "status", + "voice_assistant", + "wake_on_lan", + "web_server", + "web_server_base", "wifi_info", "wifi_signal", - "bedjet", + "wireguard", ] build_all_include(exclude_components) files.insert(0, temp_header_file)