test_shellcheck.bats
1 load data 2 3 @test "shellcheck on scripts" { 4 if [ ! -n "${scripts}" ]; then 5 skip "- no scripts to check" 6 fi 7 shellcheck -x ${scripts} 8 } 9 10 @test "shellcheck on libraries" { 11 if [ ! -n "${libs}" ]; then 12 skip "- no libraries to check" 13 fi 14 shellcheck -xe SC2148 ${libs} 15 }