Skip to content
Snippets Groups Projects
Verified Commit 7a8c8568 authored by Wiktor Kwapisiewicz's avatar Wiktor Kwapisiewicz
Browse files

chore: Simplify checking for justfile bash lints

Introduces a new `lint-recipe` recipe which abstracts away ugly parts
of the lint-checking of shell-based recipes.

Fixes: #60


Signed-off-by: default avatarWiktor Kwapisiewicz <wiktor@metacode.biz>
parent ec785744
No related branches found
No related tags found
1 merge request!49chore: Simplify checking for justfile bash lints
......@@ -155,16 +155,20 @@ dry-update:
lint:
tangler bash < nethsm-cli/README.md | shellcheck --shell bash -
just -vv -n test-readme nethsm-cli 2>&1 | rg -v '===> Running recipe' | shellcheck -
just -vv -n check-commits 2>&1 | rg -v '===> Running recipe' | shellcheck -
just -vv -n check-unused-deps 2>&1 | rg -v '===> Running recipe' | shellcheck -
just -vv -n ci-publish 2>&1 | rg -v '===> Running recipe' | shellcheck -
just -vv -n generate shell_completions nethsm-cli 2>&1 | rg -v '===> Running recipe' | shellcheck -
just -vv -n is-workspace-member nethsm 2>&1 | rg -v '===> Running recipe' | shellcheck -
just -vv -n release nethsm 2>&1 | rg -v '===> Running recipe' | shellcheck -
just lint-recipe 'test-readme nethsm-cli'
just lint-recipe check-commits
just lint-recipe check-unused-deps
just lint-recipe ci-publish
just lint-recipe 'generate shell_completions nethsm-cli'
just lint-recipe 'is-workspace-member nethsm'
just lint-recipe 'release nethsm'
cargo clippy --all -- -D warnings
# Check justfile recipe for shell issues
lint-recipe recipe:
just -vv -n {{ recipe }} 2>&1 | rg -v '===> Running recipe' | shellcheck -
# Checks for issues with dependencies
check-dependencies: dry-update
cargo deny --all-features check
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment