Skip to content

Commit 6b65696

Browse files
build(deps): bump github.com/ldez/usetesting from 0.4.3 to 0.5.0 (#5877)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 6ed4f04 commit 6b65696

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

.golangci.next.reference.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3689,13 +3689,13 @@ linters:
36893689

36903690
# Enable/disable `context.Background()` detections.
36913691
# Disabled if Go < 1.24.
3692-
# Default: true
3693-
context-background: false
3692+
# Default: false
3693+
context-background: true
36943694

36953695
# Enable/disable `context.TODO()` detections.
36963696
# Disabled if Go < 1.24.
3697-
# Default: true
3698-
context-todo: false
3697+
# Default: false
3698+
context-todo: true
36993699

37003700
unconvert:
37013701
# Remove conversions that force intermediate rounding.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ require (
7272
github.com/ldez/gomoddirectives v0.7.0
7373
github.com/ldez/grignotin v0.9.0
7474
github.com/ldez/tagliatelle v0.7.1
75-
github.com/ldez/usetesting v0.4.3
75+
github.com/ldez/usetesting v0.5.0
7676
github.com/leonklingele/grouper v1.1.2
7777
github.com/macabu/inamedparam v0.2.0
7878
github.com/manuelarte/embeddedstructfieldcheck v0.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonschema/golangci.next.jsonschema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3775,11 +3775,11 @@
37753775
"properties": {
37763776
"context-background": {
37773777
"type": "boolean",
3778-
"default": true
3778+
"default": false
37793779
},
37803780
"context-todo": {
37813781
"type": "boolean",
3782-
"default": true
3782+
"default": false
37833783
},
37843784
"os-chdir": {
37853785
"type": "boolean",

pkg/config/linters_settings.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ var defaultLintersSettings = LintersSettings{
172172
HTTPStatusCode: true,
173173
},
174174
UseTesting: UseTestingSettings{
175-
ContextBackground: true,
176-
ContextTodo: true,
175+
ContextBackground: false,
176+
ContextTodo: false,
177177
OSChdir: true,
178178
OSMkdirTemp: true,
179179
OSSetenv: true,

pkg/golinters/usetesting/testdata/usetesting_go124.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010
)
1111

1212
func Test_contextBackground(t *testing.T) {
13-
context.Background() // want `context\.Background\(\) could be replaced by t\.Context\(\) in .+`
13+
context.Background()
1414
}
1515

1616
func Test_contextTODO(t *testing.T) {
17-
context.TODO() // want `context\.TODO\(\) could be replaced by t\.Context\(\) in .+`
17+
context.TODO()
1818
}
1919

2020
func Test_osChdir(t *testing.T) {

pkg/golinters/usetesting/testdata/usetesting_go124_configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111
)
1212

1313
func Test_contextBackground(t *testing.T) {
14-
context.Background()
14+
context.Background() // want `context\.Background\(\) could be replaced by t\.Context\(\) in .+`
1515
}
1616

1717
func Test_contextTODO(t *testing.T) {
18-
context.TODO()
18+
context.TODO() // want `context\.TODO\(\) could be replaced by t\.Context\(\) in .+`
1919
}
2020

2121
func Test_osChdir(t *testing.T) {

pkg/golinters/usetesting/testdata/usetesting_go124_configuration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ linters:
88
os-setenv: true
99
os-temp-dir: true
1010
os-chdir: false
11-
context-background: false
12-
context-todo: false
11+
context-background: true
12+
context-todo: true

0 commit comments

Comments
 (0)