Skip to content

Commit a847aa3

Browse files
committed
fix lint
1 parent 717b639 commit a847aa3

3 files changed

Lines changed: 5 additions & 15 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: lint
2424
if: matrix.os == 'ubuntu-latest'
25-
run: go run github.com/ysmood/golangci-lint@latest -v 1.59.1
25+
run: go run github.com/ysmood/golangci-lint@latest -v 1.64.5
2626

2727
- name: test
2828
env:

.golangci.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
linters:
2-
enable:
3-
- gofmt
4-
- revive
5-
- gocyclo
6-
- misspell
7-
8-
linters-settings:
9-
gocyclo:
10-
min-complexity: 15
11-
12-
issues:
13-
exclude-dirs-use-default: false
1+
version: v1.64

lib/lcs/sequence.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ var regWord = regexp.MustCompile(`(?s)` + // enable . to match newline
117117
// RegRune to match a rune
118118
var regRune = regexp.MustCompile(`(?s).`)
119119

120+
type contextSplitKey struct{}
121+
120122
// SplitKey for context
121-
var SplitKey = struct{}{}
123+
var SplitKey = contextSplitKey{}
122124

123125
// Split a line into words
124126
func Split(s string) []string {

0 commit comments

Comments
 (0)