nu-lint 1.3.0

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

#[test]
fn ignore_has_operator() {
    let code = r#"$record has key"#;
    RULE.assert_ignores(code);
}

#[test]
fn ignore_in_list() {
    let code = r#"$item in $list"#;
    RULE.assert_ignores(code);
}

#[test]
fn ignore_not_in_columns() {
    // This is for the other rule (columns_not_in_to_not_has)
    let code = r#"$key not-in ($record | columns)"#;
    RULE.assert_ignores(code);
}

#[test]
fn ignore_in_without_columns() {
    let code = r#"$key in ($record | values)"#;
    RULE.assert_ignores(code);
}