diff --git a/cli/assets/completions/usage.bash b/cli/assets/completions/usage.bash index dc7c4a1..a8ed1e4 100644 --- a/cli/assets/completions/usage.bash +++ b/cli/assets/completions/usage.bash @@ -12,6 +12,7 @@ _usage() { # shellcheck disable=SC2207 COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_usage}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) ) + # shellcheck disable=SC2181 if [[ $? -ne 0 ]]; then unset COMPREPLY fi diff --git a/lib/src/complete/bash.rs b/lib/src/complete/bash.rs index 05f29b2..aeba597 100644 --- a/lib/src/complete/bash.rs +++ b/lib/src/complete/bash.rs @@ -42,6 +42,7 @@ __USAGE_EOF__"#, r#" # shellcheck disable=SC2207 COMPREPLY=( $(usage complete-word --shell bash -s "${{{spec_variable}}}" --cword="$COMP_CWORD" -- "${{COMP_WORDS[@]}}" ) ) + # shellcheck disable=SC2181 if [[ $? -ne 0 ]]; then unset COMPREPLY fi diff --git a/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash-2.snap b/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash-2.snap index da6933d..a52abda 100644 --- a/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash-2.snap +++ b/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash-2.snap @@ -17,6 +17,7 @@ _mycli() { # shellcheck disable=SC2207 COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_mycli_1_2_3}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) ) + # shellcheck disable=SC2181 if [[ $? -ne 0 ]]; then unset COMPREPLY fi diff --git a/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash-3.snap b/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash-3.snap index 2c0481d..fc9fbe6 100644 --- a/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash-3.snap +++ b/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash-3.snap @@ -48,6 +48,7 @@ __USAGE_EOF__ # shellcheck disable=SC2207 COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_mycli}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) ) + # shellcheck disable=SC2181 if [[ $? -ne 0 ]]; then unset COMPREPLY fi diff --git a/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash.snap b/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash.snap index 43b3499..7504114 100644 --- a/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash.snap +++ b/lib/src/complete/snapshots/usage__complete__bash__tests__complete_bash.snap @@ -17,6 +17,7 @@ _mycli() { # shellcheck disable=SC2207 COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_mycli}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) ) + # shellcheck disable=SC2181 if [[ $? -ne 0 ]]; then unset COMPREPLY fi diff --git a/mise.lock b/mise.lock index b055224..47a3fab 100644 --- a/mise.lock +++ b/mise.lock @@ -1,9 +1,35 @@ -[tools] -actionlint = "1.7.4" -cargo-binstall = "1.10.8" -"cargo:cargo-edit" = "0.13.0" -"cargo:cargo-insta" = "1.41.1" -"cargo:cargo-release" = "0.25.12" -"cargo:git-cliff" = "2.6.1" -gh = "2.60.1" -"npm:prettier" = "3.3.3" +[tools.actionlint] +version = "1.7.4" + +[tools.cargo-binstall] +version = "1.10.8" + +[tools.cargo-binstall.checksums] +cargo-binstall-macos-aarch64 = "sha256:c30a499060745f0c4435a446253fc676838cff0a18d2dd555fcf10399176b1bf" + +[tools."cargo:cargo-edit"] +version = "0.13.0" + +[tools."cargo:cargo-insta"] +version = "1.41.1" + +[tools."cargo:cargo-release"] +version = "0.25.12" + +[tools."cargo:git-cliff"] +version = "2.6.1" + +[tools.gh] +version = "2.60.1" + +[tools.gh.checksums] +"gh_2.60.1_macOS_arm64.zip" = "sha256:1930a3db9a2d1c420e476d06f3d4a8f02db8472d2630a1099968c3b82f231f1f" + +[tools."npm:prettier"] +version = "3.3.3" + +[tools.shellcheck] +version = "0.10.0" + +[tools.shellcheck.checksums] +shellcheck-macos-aarch64 = "sha256:b9e420df8c78ec7d261d66277d5767cbd4cf6da4e4a9f8b02ea4811cd4cc1109" diff --git a/mise.toml b/mise.toml index fd0b507..a77126f 100644 --- a/mise.toml +++ b/mise.toml @@ -11,6 +11,7 @@ gh = "latest" "cargo:cargo-release" = "latest" "cargo:git-cliff" = "latest" "npm:prettier" = "latest" +shellcheck = "latest" [tasks.autofix] depends = ["render", "lint-fix", "snapshots"] @@ -60,6 +61,8 @@ run = "prettier -c ." run = 'cargo clippy --all --all-features -- -D warnings' [tasks."lint:fmt"] run = 'cargo fmt --all -- --check' +[tasks."lint:shellcheck"] +run = 'shellcheck cli/assets/completions/*.bash' [tasks.lint-fix] run = [