mirror of
https://github.com/esphome/esphome.git
synced 2025-06-18 06:15:46 +01:00
Run clang-tidy against ESP32 (#2147)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Otto winter <otto@otto-winter.com>
This commit is contained in:
.clang-tidyplatformio.ini
.github/workflows
esphome
components
ac_dimmer
airthings_ble
airthings_wave_plus
am43
anova
api
atc_mithermometer
ble_client
esp32_ble
esp32_ble_beacon
esp32_ble_server
esp32_ble_tracker
esp32_camera
esp32_improv
esp8266_pwm
ethernet
i2c
inkbird_ibsth1_mini
inkplate6
ledc
mqtt
nextion
pulse_counter
pvvx_mithermometer
remote_base
socket
spi
st7735
st7789v
uart
wifi
xiaomi_ble
xiaomi_cgd1
xiaomi_cgdk2
xiaomi_cgg1
xiaomi_cgpr1
xiaomi_gcls002
xiaomi_hhccjcy01
xiaomi_hhccpot002
xiaomi_jqjcy01ym
xiaomi_lywsd02
xiaomi_lywsd03mmc
xiaomi_lywsdcgq
xiaomi_mhoc401
xiaomi_miscale2
xiaomi_mjyd02yla
xiaomi_mue4094rt
xiaomi_wx08zm
core
script
@ -92,6 +92,16 @@ def filter_changed(files):
|
||||
return files
|
||||
|
||||
|
||||
def filter_grep(files, value):
|
||||
matched = []
|
||||
for file in files:
|
||||
with open(file, "r") as handle:
|
||||
contents = handle.read()
|
||||
if value in contents:
|
||||
matched.append(file)
|
||||
return matched
|
||||
|
||||
|
||||
def git_ls_files(patterns=None):
|
||||
command = ["git", "ls-files", "-s"]
|
||||
if patterns is not None:
|
||||
|
Reference in New Issue
Block a user