scripts: compliance: always run the MaintainersFormat check

The check currently only runs if the maintainers file itself is changed,
but that means that the check is going to miss every PR that moves
directory or delete files that can potentially trigger an error.

This check is cheap to run, just run it unconditionally.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-07-25 18:10:03 +00:00 committed by Anas Nashif
parent 5b432ecda4
commit 68f514fc38

View file

@ -1073,8 +1073,8 @@ class MaintainersFormat(ComplianceTest):
def run(self):
MAINTAINERS_FILES = ["MAINTAINERS.yml", "MAINTAINERS.yaml"]
for file in get_files(filter="d"):
if file not in MAINTAINERS_FILES:
for file in MAINTAINERS_FILES:
if not os.path.exists(file):
continue
try: