Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate all result tags are closed #76

Merged
merged 3 commits into from
Jan 12, 2024
Merged

Validate all result tags are closed #76

merged 3 commits into from
Jan 12, 2024

Conversation

WardsParadox
Copy link
Contributor

Added a check to validate that all tags are closed. Found that this wasn't being flagged on our EA's and figured I'd add it here instead of writing another hook :)

Example:

echo "<result>test</result"
test.sh: has an incomplete <result> tags!

all_results = len(re.findall("result.*\/result", ea_content))
proper_results = len(re.findall("<result>.*<\/result>", ea_content))
if proper_results < all_results:
print(f"{filename}: has an incomplete <result> tags!")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small grammatical fix here: remove an

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest commit fixes this :)

@homebysix
Copy link
Owner

Thanks!

@homebysix homebysix merged commit 1ebede1 into homebysix:main Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants