Skip to content

Commit 63acd74

Browse files
committed
update: lint config and replace deprecated package
1 parent 6b6088a commit 63acd74

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

.golangci.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# Configuration for golangci-lint v2. See https://golangci-lint.run/usage/configuration/.
2+
version: "2"
3+
24
linters:
35
default: standard
46
enable:
5-
- gofmt
67
- whitespace
78
- govet
89
- misspell
910
- forcetypeassert
1011
- gci
1112
- bodyclose
12-
issues:
13-
exclude:
14-
- composite
13+
exclusions:
14+
rules:
15+
- text: composite
16+
linters:
17+
- govet
18+
19+
formatters:
20+
enable:
21+
- gofmt

pkg/tangy/queries.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package tangy
22

33
import (
44
"fmt"
5+
"math/rand/v2"
56
"strings"
67

78
"github.com/jackc/pgx/v5"
8-
"golang.org/x/exp/rand"
99
)
1010

1111
// contentIdsInVersion forms a single query to fetch a list of content ids in a repository version

0 commit comments

Comments
 (0)