Skip to content

Commit

Permalink
fix sample names (#1729)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeBelz authored Jul 5, 2024
1 parent c419ee3 commit 6a2a777
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Scripts/CI/README_Metadata_StyleCheck/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def check_files(file_list):
directory_list = file.split("/")

# Do not check widgets
if "ArcGISRuntimeSDKQt_CppSamples_Widgets" in directory_list:
if "CppWidgetsSamples" in directory_list:
continue

file_name = directory_list[-1]
Expand Down Expand Up @@ -294,15 +294,11 @@ def check_snippets(self, snippets: list) -> list:
self.sample_name + ".qml",
]

if self.sample_type == "ArcGISRuntimeSDKQt_CppSamples":
if self.sample_type == "CppSamples":
expected_snippets += [self.sample_name + ".cpp", self.sample_name + ".h"]

if self.sample_type == "ArcGISRuntimeSDKQt_CppSamples":
if not snippets[-1] == expected_snippets[0]:
errors.append(f"The primary .qml snippet must be listed last in the list for C++ samples.")
else:
if not snippets[0] == expected_snippets[0]:
errors.append(f"The primary .qml snippet must be listed first in the list for QML samples.")

for expected_snippet in expected_snippets:
if expected_snippet not in snippets:
Expand Down

0 comments on commit 6a2a777

Please sign in to comment.