nu-lint 1.3.0

Linter for Nu shell scripts that helpfully suggests improvements
Documentation
use super::RULE;

#[test]
fn if_block_no_spaces() {
    let bad = "if true {echo 'yes'}";
    RULE.assert_detects(bad);
}

#[test]
fn if_block_missing_opening_space() {
    let bad = "if true {echo 'yes' }";
    RULE.assert_detects(bad);
}

#[test]
fn if_block_missing_closing_space() {
    let bad = "if true { echo 'yes'}";
    RULE.assert_detects(bad);
}