nu-lint 1.3.0

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

#[test]
fn test_detect_split_row_with_newline() {
    let bad_code = r#"
$text | split row "\n"
"#;

    RULE.assert_detects(bad_code);
}

#[test]
fn test_detect_split_row_multiline() {
    let bad_code = r#"
def process-text [] {
    $input | split row "\n" | each { |line| $line | str trim }
}
"#;

    RULE.assert_detects(bad_code);
}