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 test_fix_uname_no_args() {
    RULE.assert_fixed_is("^uname", "sys host | get name");
}

#[test]
fn test_fix_uname_all() {
    RULE.assert_fixed_is("^uname -a", "sys host");
}

#[test]
fn test_fix_uname_kernel_release() {
    RULE.assert_fixed_is("^uname -r", "sys host | get kernel_version");
}