nu-lint 1.3.0

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

#[test]
fn test_ignore_lines_usage() {
    let good_code = r"
open file.txt | lines
";

    RULE.assert_ignores(good_code);
}

#[test]
fn test_ignore_split_row_with_other_delimiter() {
    let good_code = r#"
"a,b,c" | split row ","
"#;

    RULE.assert_ignores(good_code);
}

#[test]
fn test_ignore_split_row_with_colon() {
    let good_code = r#"
"PATH=/usr/bin:/bin" | split row ":"
"#;

    RULE.assert_ignores(good_code);
}

#[test]
fn test_ignore_split_row_with_space() {
    let good_code = r#"
"one two three" | split row " "
"#;

    RULE.assert_ignores(good_code);
}