Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions hk.pkl
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
amends "package://github.com/jdx/hk/releases/download/v1.49.0/hk@1.49.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.49.0/hk@1.49.0#/Builtins.pkl"
import "package://github.com/hugoh/hk-config/releases/download/v0.1.0/hk-config@0.1.0#/base.pkl" as Base
amends "package://github.com/jdx/hk/releases/download/v1.50.0/hk@1.50.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.50.0/hk@1.50.0#/Builtins.pkl"
import "package://github.com/hugoh/hk-config/releases/download/v0.2.1/hk-config@0.2.1#/base.pkl" as Base

min_hk_version = Base.min_hk_version

local linters = new Mapping<String, Step> {
...Base.base
["shellcheck"] = Builtins.shellcheck
["shellharden"] = Builtins.shellharden
["trailing-ws"] = (Base.base["trailing-ws"]) {
condition = "false"
}
Expand Down
2 changes: 1 addition & 1 deletion mise-tasks/clean
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#MISE description="Clean the project"
go clean
rm -f "${COVEROUT}"
rm -f "$COVEROUT"
2 changes: 1 addition & 1 deletion mise-tasks/lint-deadcode
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#MISE description="Check for dead code"
#MISE sources=["**/*.go"]
#USAGE flag "--test" help="Include test files"
if deadcode ${usage_test:+-test} ./... 2>&1 | grep .; then
if deadcode "${usage_test:+-test}" ./... 2>&1 | grep .; then
echo 'dead code found'
exit 1
fi
2 changes: 1 addition & 1 deletion mise-tasks/lint-go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#MISE description="Lint Go source"
#MISE sources=["**/*.go"]
#USAGE flag "--fix" help="Automatically fix issues"
golangci-lint run ${usage_fix:+--fix} ./...
golangci-lint run "${usage_fix:+--fix}" ./...
2 changes: 1 addition & 1 deletion mise-tasks/test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#MISE description="Run tests with coverage"
#MISE sources=["go.mod", "**/*.go"]
gotestsum -- -race -shuffle=on -coverprofile="${COVEROUT}" -covermode=atomic ./...
gotestsum -- -race -shuffle=on -coverprofile="$COVEROUT" -covermode=atomic ./...
4 changes: 3 additions & 1 deletion mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ golangci-lint = "2.12.2"
goreleaser = "2.16.0"
cocogitto = "7.0.0"
gotestsum = "1.13.0"
hk = "1.49.0"
hk = "1.50.0"
shellcheck = "0.11.0"
"aqua:anordal/shellharden" = "4.3.2"
rumdl = "0.2.22"
zizmor = "1.26.1"
dprint = "0.54.0"
Expand Down
Loading