Skip to content

Commit

Permalink
Replace deadline in favor of timeout in golangci-lint configura…
Browse files Browse the repository at this point in the history
…tion

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.
  • Loading branch information
afritzler committed Apr 19, 2024
1 parent 72586d3 commit d3e7719
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (f *Golangci) SetTemplateDefaults() error {

//nolint:lll
const golangciTemplate = `run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true
issues:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v4-multigroup/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v4-with-deploy-image/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v4-with-grafana/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v4/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 5m
timeout: 5m
allow-parallel-runners: true

issues:
Expand Down

0 comments on commit d3e7719

Please sign in to comment.