Skip to content

Commit c731993

Browse files
Bump golangci/golangci-lint-action from 6 to 7 (#15)
* Bump golangci/golangci-lint-action from 6 to 7 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v6...v7) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump golangci-lint to version 2 config --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Peter Evans <[email protected]>
1 parent 01d9eef commit c731993

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
go-version: 1.17
2424

2525
- name: lint
26-
uses: golangci/golangci-lint-action@v6
26+
uses: golangci/golangci-lint-action@v7
2727
with:
28-
skip-go-installation: true
2928
args: --timeout=5m

.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
version: "2"
12
linters:
23
enable:
34
- gocritic
45
- godot
5-
- gofumpt
66
- prealloc
77
- predeclared
88
- revive
99
- thelper
1010
- unconvert
1111
- unparam
12+
formatters:
13+
enable:
14+
- gofumpt

lcs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func LCS(a, b []string) [][2]int {
4646
}
4747

4848
// max returns the maximum of two integers.
49+
// nolint:predeclared
4950
func max(a, b int) int {
5051
if a > b {
5152
return a

unified.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func makeHunks(diffs []DiffLine, precontext, postcontext int) []Hunk {
9797
// Aggregate blocks of modified and unmodified diff lines, creating
9898
// or updating hunks after each block.
9999
var block Hunk
100-
modifiedLines := 0 //nolint:ifshort
100+
modifiedLines := 0
101101
srcLineNum, dstLineNum := 0, 0
102102
for _, l := range diffs {
103103
if len(block.Diffs) == 0 ||
@@ -143,6 +143,7 @@ func makeHunks(diffs []DiffLine, precontext, postcontext int) []Hunk {
143143
}
144144

145145
// min returns the minimum of two integers.
146+
// nolint:predeclared
146147
func min(a, b int) int {
147148
if a < b {
148149
return a

0 commit comments

Comments
 (0)