File tree Expand file tree Collapse file tree 6 files changed +58
-56
lines changed Expand file tree Collapse file tree 6 files changed +58
-56
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,10 @@ jobs:
11
11
name : lint
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - name : setup go
15
- uses : actions/setup-go@v5
16
- with :
17
- go-version : 1.19
18
14
- uses : actions/checkout@v4
19
- - name : golangci-lint
20
- uses : golangci/golangci-lint-action@v7
15
+ - uses : actions/setup-go@v5
16
+ with :
17
+ go-version-file : " go.mod"
18
+ - uses : golangci/golangci-lint-action@v7
21
19
with :
22
20
version : latest
23
- args : " --config .golintci.yaml"
Original file line number Diff line number Diff line change @@ -3,17 +3,11 @@ name: Test
3
3
4
4
jobs :
5
5
test :
6
- strategy :
7
- matrix :
8
- go-version : [1.18, 1.19]
9
- os : [ubuntu-latest, macos-latest, windows-latest]
10
- runs-on : ${{ matrix.os }}
6
+ runs-on : ubuntu-latest
11
7
steps :
12
- - name : setup go
13
- uses : actions/setup-go@v5
8
+ - uses : actions/checkout@v4
9
+ - uses : actions/setup-go@v5
14
10
with :
15
- go-version : ${{ matrix.go-version }}
16
- - name : checkout code
17
- uses : actions/checkout@v4
11
+ go-version-file : " go.mod"
18
12
- name : test
19
13
run : go test -v -race ./...
Original file line number Diff line number Diff line change
1
+ # $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
2
+ version : " 2"
3
+ run :
4
+ modules-download-mode : readonly
5
+ issues-exit-code : 1
6
+ tests : true
7
+ linters :
8
+ enable :
9
+ - bodyclose
10
+ - contextcheck
11
+ - errname
12
+ - errorlint
13
+ - godot
14
+ - misspell
15
+ - nilerr
16
+ - tparallel
17
+ - unparam
18
+ - whitespace
19
+ exclusions :
20
+ generated : lax
21
+ presets :
22
+ - comments
23
+ - common-false-positives
24
+ - legacy
25
+ - std-error-handling
26
+ paths :
27
+ - third_party$
28
+ - builtin$
29
+ - examples$
30
+ formatters :
31
+ enable :
32
+ - gofmt
33
+ exclusions :
34
+ generated : lax
35
+ paths :
36
+ - third_party$
37
+ - builtin$
38
+ - examples$
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
module github.com/jacobbednarz/go-csp-collector
2
2
3
- go 1.19
3
+ go 1.23.0
4
+
5
+ toolchain go1.23.4
4
6
5
7
require (
8
+ github.com/davidmytton/url-verifier v1.0.1
6
9
github.com/gorilla/mux v1.8.1
7
10
github.com/sirupsen/logrus v1.9.3
8
11
)
9
12
10
13
require (
11
14
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
12
- github.com/davidmytton/url-verifier v1.0.1 // indirect
13
- golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
15
+ github.com/stretchr/testify v1.10.0 // indirect
16
+ golang.org/x/sys v0.31.0 // indirect
14
17
)
Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
12
12
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ =
13
13
github.com/sirupsen/logrus v1.9.3 /go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ =
14
14
github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
15
- github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY =
16
15
github.com/stretchr/testify v1.7.0 /go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg =
17
- github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk =
18
- golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ =
16
+ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA =
17
+ github.com/stretchr/testify v1.10.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
19
18
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 /go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg =
19
+ golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik =
20
+ golang.org/x/sys v0.31.0 /go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k =
20
21
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
21
- gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo =
22
22
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
23
+ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
24
+ gopkg.in/yaml.v3 v3.0.1 /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
You can’t perform that action at this time.
0 commit comments