Skip to content

Commit 603e4df

Browse files
nordicjmjhedberg
authored andcommitted
scripts: ci: check_compliance: Fix not checking CMakeLists.txt files
Fixes an oversight of only checking files that are exactly named CMakeLists.txt - this includes the directory name, so that it actually checks any file in the tree with this name Signed-off-by: Jamie McCrae <[email protected]>
1 parent 5a71080 commit 603e4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/check_compliance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ class CMakeStyle(ComplianceTest):
18591859
def run(self):
18601860
# Loop through added/modified files
18611861
for fname in get_files(filter="d"):
1862-
if fname.endswith(".cmake") or fname == "CMakeLists.txt":
1862+
if fname.endswith(".cmake") or fname.endswith("CMakeLists.txt"):
18631863
self.check_style(fname)
18641864

18651865
def check_style(self, fname):

0 commit comments

Comments
 (0)