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:
parent
5b432ecda4
commit
68f514fc38
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue