WASI icon indicating copy to clipboard operation
WASI copied to clipboard

Unify the format of wit files

Open oovm opened this issue 11 months ago • 1 comments

I wrote a tool that does project-level formatting: https://plugins.jetbrains.com/plugin/24001-wit-idl

Also respects the rules defined in the .editorconfig file.

The current code style is a bit confusing.

Most file use a mixture of 2 and 4 spaces, some files use 6 spaces, and one uses 7 spaces.

This PR makes all wit files have a unified code style which defined in .editorconfig.


Changes will be synchronized to other upstreams later.

Projects with 0.3.0-draft wit still need some additional development work.

oovm avatar Jan 30 '25 09:01 oovm

Thanks for this! These are just mirrors although I don't have an issue with normalizing what we have here while also updating upstream. For the individual proposal repos, we need to also have this run as a lint like we do with wit-abi-up action.

ricochet avatar Jan 31 '25 18:01 ricochet