Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 721 Bytes

DEVELOPMENT.md

File metadata and controls

21 lines (16 loc) · 721 Bytes

SwimOS Development Guid

Dependencies

Formatting: rustup component add rustfmt
Clippy: rustup component add clippy
Tarpaulin cargo install cargo-tarpaulin

Unit tests

Basic: cargo test

With coverage: cargo tarpaulin --ignore-tests -o Html -t 300

Lint

Manual

  1. cargo fmt --all -- --check
  2. cargo clippy --all-features --workspace --all-targets -- -D warnings

Automatic (before commit):

  • Install hook: sh ./install-commit-hook.sh
  • Remove hook: sh ./remove-commit-hook.sh

Note: The pre-commit hooks take a while to run all checks.