Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(precommit): now properly checks formatting
Elijah Potter6c8a59db0a3b
diff --git a/harper-ls/src/pos_conv.rs b/harper-ls/src/pos_conv.rsindex 256356c78..ad00a53f0 100644--- a/harper-ls/src/pos_conv.rs+++ b/harper-ls/src/pos_conv.rs@@ -31,7 +31,7 @@ fn index_to_position(source: &[char], index: usize) -> Position {Position {line: lines as u32,- character: cols as u32,+ character: cols as u32}}@@ -79,7 +79,7 @@ mod tests {let start = Position {line: 0,- character: 4,+ character: 4};let i = position_to_index(&source, start);@@ -99,7 +99,7 @@ mod tests {let a = Position {line: 1,- character: 2,+ character: 2};let b = position_to_index(&source, a);diff --git a/precommit.sh b/precommit.shindex a648aed6c..302d3da0f 100755--- a/precommit.sh+++ b/precommit.sh@@ -7,7 +7,7 @@ set -eo pipefailR=$(pwd)RUSTDOCFLAGS="-D warnings"-cargo +nightly fmt+cargo +nightly fmt --checkcargo clippy -- -Dwarningscargo testcargo test --release@@ -21,7 +21,7 @@ wasm-pack buildcd $R/webyarn install-yarn run format-yarn run lint+yarn run format --check+yarn run lintyarn run checkyarn run build