Skip to content

Before code contribution (ing..)

Changseok Han edited this page Aug 15, 2019 · 1 revision

Rust compiler

Always use the latest stable version of Rust compiler.

Lints and tests

cargo clean
cargo clippy -- -D warnings
cargo build --verbose --all
cargo clippy --all-targets --all-features -- -D warnings -A clippy::cognitive_complexity
cargo test --verbose --all
cd wasm && cargo clippy -- -D warnings -A clippy::suspicious_else_formatting
cd ../nodejs/native && cargo clippy -- -D warnings

Code coverage

The goal is to continue 85% ~ 90%

cargo tarpaulin --exclude-files nodejs wasm parser/mod.rs
Clone this wiki locally