Compare commits

..
4 Commits
Author SHA1 Message Date
lukaszraczylo 6d786f7ce9 ci: move the analysis template out of the workflows
The template needs a .git-velocity.yaml that this repository does not have, so every run failed. It now lives in examples/workflows for users to copy.
2026-10-03 00:30:35 +01:00
lukaszraczylo e604dcf64e chore: remove the golangci-lint config backup
The migrate command left the backup file, and it was committed by mistake.
2026-10-03 00:30:35 +01:00
lukaszraczylo 39c1d50236 fix(site): use encoding/json
goccy/go-json v0.11.0 and later panic in the indent encoder with a nil pointer dereference, so the dependency update failed its tests. The site generator needs nothing beyond the standard library.
2026-10-02 22:07:13 +01:00
lukaszraczylo 6322e0e658 chore: migrate golangci-lint config to v2
golangci-lint v2 rejects the old config format, so the pre-commit hook failed on every commit. The config now uses version 2 with the same linters and exclusions.
2026-10-02 22:07:12 +01:00
6 changed files with 27 additions and 21 deletions
+25 -16
View File
@@ -1,19 +1,28 @@
run:
timeout: 5m
version: "2"
linters:
enable:
- gosec
- staticcheck
linters-settings:
gosec:
excludes: []
confidence: low
severity: medium
issues:
exclude-dirs:
- .repos
- web
exclude-dirs-use-default: true
settings:
gosec:
severity: medium
confidence: low
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- .repos
- web
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
-1
View File
@@ -7,7 +7,6 @@ require (
github.com/charmbracelet/bubbles v1.0.0
github.com/charmbracelet/lipgloss v1.1.0
github.com/go-git/go-git/v5 v5.19.2
github.com/goccy/go-json v0.10.6
github.com/google/go-github/v68 v68.0.0
github.com/shurcooL/githubv4 v0.0.0-20260209031235-2402fdf4a9ed
github.com/spf13/cobra v1.10.2
-2
View File
@@ -57,8 +57,6 @@ github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMj
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII=
github.com/go-git/go-git/v5 v5.19.2 h1:wkfn7vOlUBu8ivAWKBWisTiwJK4jYHzTF8Ndv1LyGqY=
github.com/go-git/go-git/v5 v5.19.2/go.mod h1:QqCBE1EFN5ddFmrliLQ3/ntRCUjZU3EJuwuB/jWEHjk=
github.com/goccy/go-json v0.10.6 h1:p8HrPJzOakx/mn/bQtjgNjdTcN+/S6FcG2CTtQOrHVU=
github.com/goccy/go-json v0.10.6/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI=
github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ=
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"time"
json "github.com/goccy/go-json"
"encoding/json"
"github.com/lukaszraczylo/git-velocity/internal/config"
"github.com/lukaszraczylo/git-velocity/internal/domain/models"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"testing"
"time"
json "github.com/goccy/go-json"
"encoding/json"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"