Skip to content

Update build job to check code for linting and formatting problems#1

Open
mtilda wants to merge 2 commits intomasterfrom
add-lint-and-format-checks
Open

Update build job to check code for linting and formatting problems#1
mtilda wants to merge 2 commits intomasterfrom
add-lint-and-format-checks

Conversation

@mtilda
Copy link
Owner

@mtilda mtilda commented Mar 27, 2025

This PR adds some additional check to the build job in the Rust workflow

Motivation

  • Check and Clippy: These steps help protect us against well-known bad coding practices.

  • Format: Consistently formatted code makes for cleaner diffs and easier merging of code.

Autofix

These commands can be used to automatically fix some warnings and errors:

cargo fmt
cargo clippy --fix

Changes

  • Add steps Check, Format, and Clippy to build job in Rust workflow

  • Rename build step from "Run tests" to "Test" to align with the other steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant