Skip to content

Commit acf4655

Browse files
build(deps): bump go.einride.tech/sage from 0.265.1 to 0.268.0 in /.sage
Bumps [go.einride.tech/sage](https://github.com/einride/sage) from 0.265.1 to 0.268.0. - [Release notes](https://github.com/einride/sage/releases) - [Commits](einride/sage@v0.265.1...v0.268.0) --- updated-dependencies: - dependency-name: go.einride.tech/sage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 061825e commit acf4655

File tree

8 files changed

+15
-12
lines changed

8 files changed

+15
-12
lines changed

.sage/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module go.einride.tech/can/.sage
22

33
go 1.19
44

5-
require go.einride.tech/sage v0.265.1
5+
require go.einride.tech/sage v0.268.0

.sage/go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
go.einride.tech/sage v0.265.1 h1:q3vZbehb1EqxjY2IsJNjIayBjBHU/uKD96fDz22rauM=
2-
go.einride.tech/sage v0.265.1/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
1+
go.einride.tech/sage v0.268.0 h1:/NKvKzhIis1izBHPwK4YbRWYLL5+q+oVOANt8Z7snWA=
2+
go.einride.tech/sage v0.268.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=

cmd/cantool/main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func generateCommand(app *kingpin.Application) {
5151
Arg("output-dir", "output directory").
5252
Required().
5353
String()
54-
command.Action(func(c *kingpin.ParseContext) error {
54+
command.Action(func(_ *kingpin.ParseContext) error {
5555
return filepath.Walk(*inputDir, func(p string, i os.FileInfo, err error) error {
5656
if err != nil {
5757
return err
@@ -76,7 +76,7 @@ func lintCommand(app *kingpin.Application) {
7676
Arg("file-or-dir", "DBC file or directory").
7777
Required().
7878
ExistingFileOrDir()
79-
command.Action(func(context *kingpin.ParseContext) error {
79+
command.Action(func(_ *kingpin.ParseContext) error {
8080
filesToLint, err := resolveFileOrDirectory(*fileOrDir)
8181
if err != nil {
8282
return err
@@ -176,7 +176,7 @@ func resolveFileOrDirectory(fileOrDirectory string) ([]string, error) {
176176
return []string{fileOrDirectory}, nil
177177
}
178178
var files []string
179-
if err := filepath.Walk(fileOrDirectory, func(path string, info os.FileInfo, err error) error {
179+
if err := filepath.Walk(fileOrDirectory, func(path string, info os.FileInfo, _ error) error {
180180
if !info.IsDir() && filepath.Ext(path) == ".dbc" {
181181
files = append(files, path)
182182
}

data_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func TestData_LittleEndian(t *testing.T) {
150150
var data Data
151151
for j, signal := range tt.signals {
152152
j, signal := j, signal
153-
t.Run(fmt.Sprintf("data:%v", j), func(t *testing.T) {
153+
t.Run(fmt.Sprintf("data:%v", j), func(_ *testing.T) {
154154
data.SetUnsignedBitsLittleEndian(signal.start, signal.length, signal.unsigned)
155155
})
156156
}
@@ -160,7 +160,7 @@ func TestData_LittleEndian(t *testing.T) {
160160
var data Data
161161
for j, signal := range tt.signals {
162162
j, signal := j, signal
163-
t.Run(fmt.Sprintf("data:%v", j), func(t *testing.T) {
163+
t.Run(fmt.Sprintf("data:%v", j), func(_ *testing.T) {
164164
data.SetSignedBitsLittleEndian(signal.start, signal.length, signal.signed)
165165
})
166166
}
@@ -251,7 +251,7 @@ func TestData_BigEndian(t *testing.T) {
251251
var data Data
252252
for j, signal := range tt.signals {
253253
j, signal := j, signal
254-
t.Run(fmt.Sprintf("data:%v", j), func(t *testing.T) {
254+
t.Run(fmt.Sprintf("data:%v", j), func(_ *testing.T) {
255255
data.SetUnsignedBitsBigEndian(signal.start, signal.length, signal.unsigned)
256256
})
257257
}
@@ -261,7 +261,7 @@ func TestData_BigEndian(t *testing.T) {
261261
var data Data
262262
for j, signal := range tt.signals {
263263
j, signal := j, signal
264-
t.Run(fmt.Sprintf("data:%v", j), func(t *testing.T) {
264+
t.Run(fmt.Sprintf("data:%v", j), func(_ *testing.T) {
265265
data.SetSignedBitsBigEndian(signal.start, signal.length, signal.signed)
266266
})
267267
}

frame_json.go

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ type jsonFrame struct {
2121
//
2222
// {"id":32,"data":"0102030405060708"}
2323
// {"id":32,"extended":true,"remote":true,"length":4}
24+
//
25+
//nolint:goconst
2426
func (f Frame) JSON() string {
2527
switch {
2628
case f.IsRemote && f.IsExtended:

internal/generate/example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func TestExample_Node_NoEmptyMessages(t *testing.T) {
309309
motor := examplecan.NewMOTOR("can", "vcan0")
310310
// when starting them
311311
ctx, cancel := context.WithTimeout(context.Background(), testTimeout)
312-
handler := func(ctx context.Context) error {
312+
handler := func(_ context.Context) error {
313313
motor.Lock()
314314
motor.Tx().MotorStatus().SetSpeedKph(100).SetWheelError(true)
315315
motor.Unlock()

internal/generate/file.go

+1
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ func txGroupInterface(n *descriptor.Node) string {
749749
return n.Name + "_Tx"
750750
}
751751

752+
//nolint:goconst
752753
func txGroupStruct(n *descriptor.Node) string {
753754
return "xxx_" + n.Name + "_Tx"
754755
}

pkg/socketcan/transmitter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestTransmitter_TransmitMessage(t *testing.T) {
5353

5454
// Frame Interceptor
5555
run := false
56-
intFunc := func(fr can.Frame) {
56+
intFunc := func(_ can.Frame) {
5757
run = true
5858
}
5959
testTransmit(TransmitterFrameInterceptor(intFunc))

0 commit comments

Comments
 (0)