nu-lint 1.3.0

Linter for Nu shell scripts that helpfully suggests improvements
Documentation
1
2
3
4
5
6
7
8
use super::RULE;

#[test]
fn fix_if_block() {
    let input = "if true {echo 'yes'}";
    let expected = "if true { echo 'yes' }";
    RULE.assert_fixed_is(input, expected);
}