Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Scripts/o2_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,9 +1207,9 @@ def test_file(self, path: str, content) -> bool:
name_pwg = match.group(1)
prefix_pwg = name_pwg.capitalize()
if name_pwg in ("HF"):
base_struct_name = fr"{prefix_pwg}{base_struct_name}" # mandatory PWG prefix
base_struct_name = rf"{prefix_pwg}{base_struct_name}" # mandatory PWG prefix
else:
base_struct_name = fr"({prefix_pwg})?{base_struct_name}" # optional PWG prefix
base_struct_name = rf"({prefix_pwg})?{base_struct_name}" # optional PWG prefix
# print(f"For file {file_name} expecting to find {base_struct_name}.")
struct_names = [] # actual struct names in the file
for line in content:
Expand Down
Loading