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

Fix ruleset XML #7

Merged
merged 2 commits into from
Apr 15, 2023
Merged

Fix ruleset XML #7

merged 2 commits into from
Apr 15, 2023

Conversation

szepeviktor
Copy link
Contributor

@szepeviktor szepeviktor commented Apr 15, 2023

From #1 (review)

Mainly done with
sed -i -e 's#^\(\s\+\)\(<.\+/>\)\(<!-- .\+ -->\)$#\1\3\n\1\2#' IxDFCodingStandard/ruleset.xml

Comment on lines -450 to +445
<element key="back" value="redirect()->back"/>
<element key="back" value="redirect()-&gt;back"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a syntax error.

Copy link
Member

@alies-dev alies-dev left a comment

Choose a reason for hiding this comment

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

great catch! Although IMO comments before rule/element are a bit less readable (too many focus on comments), it's better to automate such checks, so this is a good compromise. Thank a lot!

@alies-dev alies-dev merged commit e5d1fc6 into InteractionDesignFoundation:main Apr 15, 2023
@szepeviktor szepeviktor deleted the fix-xml branch April 15, 2023 13:05
@szepeviktor
Copy link
Contributor Author

szepeviktor commented Apr 15, 2023

comments before rule/element are a bit less readable

That is not your opinion, that is a fact!
But XML is for machines only.

@szepeviktor
Copy link
Contributor Author

I hope this standard will not change more frequently than once a quarter.

@alies-dev
Copy link
Member

I hope this standard will not change more frequently than once a quarter.

no, we used this ruleset for years for our main project (private repo), with very small changes all this time. By starting using it on other repositories we have find some issues, fix them and that's it.

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