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

Use a single line for of large binding lists #9849

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

nicopap
Copy link
Contributor

@nicopap nicopap commented Sep 19, 2023

Objective

  • When adding/removing bindings in large binding lists, git would generate very difficult-to-read diffs

Solution

  • Move the @group(X) @binding(Y) into the same line as the binding type declaration

@nicopap nicopap added the A-Rendering Drawing game state to the screen label Sep 19, 2023
@alice-i-cecile alice-i-cecile added the C-Code-Quality A section of code that is hard to understand or change label Sep 19, 2023
@nicopap
Copy link
Contributor Author

nicopap commented Sep 19, 2023

Long term the binding lists will hopefully be completely generated by bevy and this won't be an issue. 🙏

@JMS55
Copy link
Contributor

JMS55 commented Sep 19, 2023

Btw you don't have to modify them, but there's also other instances of this pattern I think would be good to fix. You can use this regex: @binding\(.*\)\n to find them.

@mockersf mockersf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Sep 19, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Sep 19, 2023
Merged via the queue into bevyengine:main with commit 7163aab Sep 19, 2023
22 checks passed
@nicopap nicopap deleted the one-line-view-bindings branch September 20, 2023 13:07
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

- When adding/removing bindings in large binding lists, git would
generate very difficult-to-read diffs

## Solution

- Move the `@group(X) @binding(Y)` into the same line as the binding
type declaration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants