mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
[CI] Allow multiple grep options for clang-tidy (#10004)
This commit is contained in:
@@ -338,12 +338,12 @@ def filter_changed(files: list[str]) -> list[str]:
|
||||
return files
|
||||
|
||||
|
||||
def filter_grep(files: list[str], value: str) -> list[str]:
|
||||
def filter_grep(files: list[str], value: list[str]) -> list[str]:
|
||||
matched = []
|
||||
for file in files:
|
||||
with open(file, encoding="utf-8") as handle:
|
||||
contents = handle.read()
|
||||
if value in contents:
|
||||
if any(v in contents for v in value):
|
||||
matched.append(file)
|
||||
return matched
|
||||
|
||||
|
Reference in New Issue
Block a user