-
Notifications
You must be signed in to change notification settings - Fork 50
Apply _existing_ code format to codebase #1340
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
base: master
Are you sure you want to change the base?
Conversation
| SELECT * FROM %1% | ||
| )") % map_name).str() }; | ||
| )") % map_name) | ||
| .str() }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this format looks weird to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just applying the output of the existing formatter. We should consolidate the code to a single format first and then we can tweak the formatter if required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ihsandemir are we able to move anywhere on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ihsandemir are we able to move anywhere on this?
No, I do not like this formatting. We need to fix it. Otherwise the code looks badly formatted. We need to understand why it formats that way, and then we can fix those places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok - I'm not sure where that leaves it then. I've had a (very quick) look and think it's intended behaviour, as it's aligning with the opening { in the function declaration.
| SELECT * FROM %1% | ||
| )") % map_name).str() }; | ||
| )") % map_name) | ||
| .str() }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| 4, 33, 0, 0, 0, 0, 0, | ||
| 0, 0, 0, 0, 255, 255, 255, 255, 42, 0, 0, 0, 0, 0, | ||
| 0, 0, 210, 4, 0, 0, 5, 1, | ||
| 36, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesnt look good.
In #946 the codebase was reformatted for consistency, but as this was not enforced the codebase has drifted since then.
Reformatted with
scripts/format-all.sh.Post-merge actions: