Skip to content

Commit d3e7719

Browse files
committed
Replace deadline in favor of timeout in golangci-lint configuration
As of 1.57 version, golangci-lint deprecated the `deadline` linter setting (https://github.com/golangci/golangci-lint/releases/tag/v1.57.0). This PR changes `deadline` to `timeout` in the `.golangci.yml` configuration both for the project setup and for the `.golangci.yml` scaffolding.
1 parent 72586d3 commit d3e7719

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

docs/book/src/component-config-tutorial/testdata/project/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

docs/book/src/cronjob-tutorial/testdata/project/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

docs/book/src/getting-started/testdata/project/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

docs/book/src/multiversion-tutorial/testdata/project/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

pkg/plugins/golang/v4/scaffolds/internal/templates/golangci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (f *Golangci) SetTemplateDefaults() error {
4343

4444
//nolint:lll
4545
const golangciTemplate = `run:
46-
deadline: 5m
46+
timeout: 5m
4747
allow-parallel-runners: true
4848
4949
issues:

testdata/project-v4-multigroup-with-deploy-image/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

testdata/project-v4-multigroup/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

testdata/project-v4-with-deploy-image/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

testdata/project-v4-with-grafana/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
timeout: 5m
33
allow-parallel-runners: true
44

55
issues:

0 commit comments

Comments
 (0)