Skip to content

Commit 7155221

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

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎.golangci.yaml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Configuration for golangci-lint v2. See https://golangci-lint.run/usage/configuration/.
2+
version: 2
3+
24
linters:
35
default: standard
46
enable:
@@ -9,6 +11,9 @@ linters:
911
- forcetypeassert
1012
- gci
1113
- bodyclose
14+
1215
issues:
13-
exclude:
14-
- composite
16+
exclude-rules:
17+
- text: composite
18+
linters:
19+
- govet

‎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)