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

Format alternative syntax #1857

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ajparsons
Copy link
Contributor

@ajparsons ajparsons commented Feb 25, 2025

This isn't necessarily to be merged but just building on some points in #1856

This applies a rule to enforce the braces as opposed to 'if' 'endif' syntax.

This ends up changing relatively few files - all templates - which makes sense as I was using it because it felt a little more readable in mixed files, but also the IDE is good at finding the matching brace.

Basically if there are two options and we have a preference, we could have a rule.

@ajparsons ajparsons mentioned this pull request Feb 26, 2025
@dracos
Copy link
Member

dracos commented Feb 26, 2025

Yeah, happy to have matching brackets, I think it's clearer too (boo python ;) ).

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