nu-lint 1.2.0

Linter for Nu shell scripts that helpfully suggests improvements
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::RULE;

#[test]
fn ignores_nushell_ls_glob() {
    RULE.assert_ignores(r"ls **/*.rs");
}

#[test]
fn ignores_nushell_glob_command() {
    RULE.assert_ignores(r"glob **/*.rs");
}

#[test]
fn ignores_ls_with_where() {
    RULE.assert_ignores(r"ls | where type == file");
}