CI should check for properly formatted wgsl
Open
A-Build-System
C-Feature
D-Shaders
S-Blocked
S-Needs-Design
X-Uncontroversial
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## What problem does this solve or what need does it fill?
This is an example of a file which is not formatted properly. It has trailing whitespace.
[crates\bevy_ui\src\render\ui.wgsl](https://github.com/bevyengine/bevy/blob/3efef59d8320b8bcd7b4e6fc22e604f91eb7c2db/crates/bevy_ui/src/render/ui.wgsl)
## What solution would you like?
There should be a step in the CI job which checks that wgsl files are formatted properly.
## What alternative(s) have you considered?
None
## Additional context
I noticed a random whitespace change in [this PR](https://github.com/bevyengine/bevy/pull/15442/files) caused by unformatted code being merged.
Contributor guide
Assessment
This issue has not been assessed yet.