Commit 68f514fc authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Anas Nashif
Browse files

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: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 5b432ecd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: