Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: add a debug printf to the linter asserts using `cfg!(debug_assertions)` (#4354)
Andrew Dunbarbe2e49390f27
diff --git a/harper-core/src/linting/mod.rs b/harper-core/src/linting/mod.rsindex e731dc883..d02a08a47 100644--- a/harper-core/src/linting/mod.rs+++ b/harper-core/src/linting/mod.rs@@ -765,6 +765,8 @@ pub mod tests {eprintln!("⚠️ Input and expected are both '{needle}' - is the test correct?");}return true;+ } else if cfg!(debug_assertions) {+ eprintln!(" 🔎 Checking... \"{text}\"");}// Lint current text and try each suggestion branch