Skip to content
Open
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
3 changes: 3 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ linters:
linters:
- gosec
settings:
govet:
disable:
- inline
errcheck:
exclude-functions:
- (io.Closer).Close
Expand Down
5 changes: 3 additions & 2 deletions .mise-tasks/lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ set -euo pipefail

echo "🔍 Running linting checks..."

GOLANGCI_VERSION=$(golangci-lint --version | sed -nE 's/.*golangci-lint has version ([0-9.]+).*/\1/p')
GOLANGCI_LINT=(mise exec -- golangci-lint)
GOLANGCI_VERSION=$("${GOLANGCI_LINT[@]}" --version | sed -nE 's/.*golangci-lint has version ([0-9.]+).*/\1/p')
GOLANGCI_VERSION=${GOLANGCI_VERSION:-unknown}
echo "🧹 Running golangci-lint v${GOLANGCI_VERSION} (includes go vet)..."
golangci-lint run
"${GOLANGCI_LINT[@]}" run

echo "🛡️ Running nilaway..."
NILAWAY_BIN=$(command -v nilaway || true)
Expand Down
5 changes: 3 additions & 2 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
[tools]
golangci-lint = "2.12.2"
gotestsum = "latest"

[tasks.setup-vscode-symlinks]
description = "Create VSCode symlinks for tools not automatically handled by mise-vscode"
run = [
"mkdir -p .vscode/mise-tools",
"ln -sf $(mise exec golangci-lint@2.7.2 -- which golangci-lint) .vscode/mise-tools/golangci-lint",
"ln -sf $(mise exec -- which golangci-lint) .vscode/mise-tools/golangci-lint",
]

[hooks]
postinstall = [
"ln -sf ./AGENTS.md ./CLAUDE.md",
"git submodule update --init --recursive",
"go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.7.2",
"mise install golangci-lint",
"mise run setup-vscode-symlinks",
"go install go.uber.org/nilaway/cmd/nilaway@8ad05f0",
]
2 changes: 1 addition & 1 deletion jsonschema/oas3/tests/testsuite
Submodule testsuite updated 105 files
Loading