Skip to content

Commit 2d6ab11

Browse files
committed
chore: update implementation
1 parent 8300ad8 commit 2d6ab11

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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.

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