Skip to content

Commit 4720014

Browse files
chore(deps): update dependency go to v1.25.0 (#100)
* chore(deps): update dependency go to v1.25.0 * chore: update golangci-lint-action --------- Co-authored-by: Jeff Bailey <[email protected]> Co-authored-by: Jeff Bailey <[email protected]>
1 parent 8b9036a commit 4720014

File tree

5 files changed

+72
-24
lines changed

5 files changed

+72
-24
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
check-latest: true
2525

2626
- name: Run linters
27-
uses: golangci/golangci-lint-action@v6
27+
uses: golangci/golangci-lint-action@v8
2828
with:
2929
version: latest
3030
args: -v --timeout=5m

.golangci.bck.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
run:
3+
tests: false
4+
5+
linters-settings:
6+
errcheck:
7+
check-type-assertions: true
8+
gosec:
9+
excludes:
10+
- G115
11+
12+
linters:
13+
enable:
14+
- bodyclose
15+
- containedctx
16+
- contextcheck
17+
- copyloopvar
18+
- errname
19+
- errorlint
20+
- exhaustive
21+
- gci
22+
- gochecknoinits
23+
- gocritic
24+
- godox
25+
- gofmt
26+
- goimports
27+
- gosec
28+
- misspell
29+
- noctx
30+
- revive
31+
- stylecheck
32+
- sqlclosecheck
33+
- testpackage
34+
- unparam
35+
- unused
36+
37+
issues:
38+
include:
39+
- EXC0012
40+
- EXC0013
41+
- EXC0014
42+
- EXC0015

.golangci.yaml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
---
1+
version: "2"
22
run:
33
tests: false
4-
5-
linters-settings:
6-
errcheck:
7-
check-type-assertions: true
8-
gosec:
9-
excludes:
10-
- G115
11-
124
linters:
135
enable:
146
- bodyclose
@@ -18,25 +10,39 @@ linters:
1810
- errname
1911
- errorlint
2012
- exhaustive
21-
- gci
2213
- gochecknoinits
2314
- gocritic
2415
- godox
25-
- gofmt
26-
- goimports
2716
- gosec
2817
- misspell
2918
- noctx
3019
- revive
31-
- stylecheck
3220
- sqlclosecheck
21+
- staticcheck
3322
- testpackage
3423
- unparam
35-
- unused
36-
37-
issues:
38-
include:
39-
- EXC0012
40-
- EXC0013
41-
- EXC0014
42-
- EXC0015
24+
settings:
25+
errcheck:
26+
check-type-assertions: true
27+
gosec:
28+
excludes:
29+
- G115
30+
exclusions:
31+
generated: lax
32+
presets:
33+
- common-false-positives
34+
- legacy
35+
- std-error-handling
36+
paths:
37+
- examples/*
38+
formatters:
39+
enable:
40+
- gci
41+
- gofmt
42+
- goimports
43+
exclusions:
44+
generated: lax
45+
paths:
46+
- third_party$
47+
- builtin$
48+
- examples$

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/Comcast/scte35-go
22

33
go 1.23.0
44

5-
toolchain go1.24.6
5+
toolchain go1.25.0
66

77
require (
88
github.com/bamiaux/iobit v0.0.0-20170418073505-498159a04883

pkg/scte35/scte35.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ type UTCSpliceTime struct {
146146

147147
// GPSSeconds returns the seconds since GPS Epoch
148148
func (t UTCSpliceTime) GPSSeconds() uint32 {
149-
return uint32(t.Time.Unix() - unixEpochToGPSEpoch)
149+
return uint32(t.Unix() - unixEpochToGPSEpoch)
150150
}
151151

152152
// readerError returns the readers error state, if any.

0 commit comments

Comments
 (0)