Enforce formatting in CI build #64
Labels
good first issue
Good for newcomers
topic: build
Anything relating to the build system.
type: development
Work to ease development or maintenance, without direct effect on features or bugs
I, like many others, use
cargo fmt
to format my code. To prevent the formatting from drifting, which might cause unrelated formatting changes when someone with formatting enabled edits differently-formatted code again, we should enforce this in the CI build.Instead of adding a build step for each platform-specific build, I think it would make sense to add a build script and just call that from each build. That reduces duplication and has the advantage of letting developers run the CI build locally, which takes out a lot of guesswork. This build script could then be extended to check formatting.
A shell script won't do, we need something portable. cargo-make looks like it would work.
Labeling as https://github.com/hannobraun/Fornjot/labels/good%20first%20issue, since no Fornjot knowledge is required. This is just general build system work.
The text was updated successfully, but these errors were encountered: