File tree 5 files changed +67
-5
lines changed
5 files changed +67
-5
lines changed Original file line number Diff line number Diff line change 12
12
if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
13
13
strategy :
14
14
matrix :
15
- go : [ '1.21', '1. 22', '1.23' ]
15
+ go : [ '1.22', '1.23' ]
16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
- uses : actions/setup-go@v5
Original file line number Diff line number Diff line change
1
+ run :
2
+ deadline : 5m
3
+ allow-parallel-runners : true
4
+
5
+ linters-settings :
6
+ govet :
7
+ enable=fieldalignment : true
8
+ revive :
9
+ rules :
10
+ # The following rules are recommended https://github.com/mgechev/revive#recommended-configuration
11
+ - name : blank-imports
12
+ - name : context-as-argument
13
+ - name : context-keys-type
14
+ - name : dot-imports
15
+ - name : error-return
16
+ - name : error-strings
17
+ - name : error-naming
18
+ - name : exported
19
+ - name : increment-decrement
20
+ - name : var-naming
21
+ - name : var-declaration
22
+ - name : package-comments
23
+ - name : range
24
+ - name : receiver-naming
25
+ - name : time-naming
26
+ - name : unexported-return
27
+ - name : indent-error-flow
28
+ - name : errorf
29
+ - name : empty-block
30
+ - name : superfluous-else
31
+ - name : unused-parameter
32
+ - name : unreachable-code
33
+ - name : redefines-builtin-id
34
+ #
35
+ # Rules in addition to the recommended configuration above.
36
+ #
37
+ - name : bool-literal-in-expr
38
+ - name : constant-logical-expr
39
+
40
+ linters :
41
+ disable-all : true
42
+ enable :
43
+ - copyloopvar
44
+ - dupl
45
+ - errcheck
46
+ - goconst
47
+ - gocyclo
48
+ - gofmt
49
+ - goimports
50
+ - gosimple
51
+ - govet
52
+ - ineffassign
53
+ - lll
54
+ - misspell
55
+ - nakedret
56
+ - prealloc
57
+ - revive
58
+ - staticcheck
59
+ - typecheck
60
+ - unconvert
61
+ - unparam
62
+ - unused
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ OUTDIR ?= $(TMPDIR)
14
14
15
15
# Dynamic version selection based on Go version
16
16
# Format: $(TOOLSDIR)/get_version.sh <go_version> <tool_version1> <tool_version2> ..
17
- GOLANGCI_LINT_VERSION ?= $(shell $(TOOLSDIR ) /get_version.sh 1.21 v1.59 v1.61 )
18
- REVIVE_VERSION ?= $(shell $(TOOLSDIR ) /get_version.sh 1.21 v1.4)
17
+ GOLANGCI_LINT_VERSION ?= $(shell $(TOOLSDIR ) /get_version.sh 1.22 v1.63.4 )
18
+ REVIVE_VERSION ?= $(shell $(TOOLSDIR ) /get_version.sh 1.22 v1.4)
19
19
20
20
GOLANGCI_LINT_URL ?= github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION )
21
21
GOLANGCI_LINT ?= $(GO ) run $(GOLANGCI_LINT_URL )
Original file line number Diff line number Diff line change 1
1
module darvaza.org/middleware
2
2
3
- go 1.21
3
+ go 1.22
4
4
5
5
require (
6
6
darvaza.org/core v0.15.6
Original file line number Diff line number Diff line change 6
6
"packageRules" : [
7
7
{
8
8
"matchDatasources" : [" golang-version" ],
9
- "allowedVersions" : " 1.21 "
9
+ "allowedVersions" : " 1.22 "
10
10
}
11
11
]
12
12
}
You can’t perform that action at this time.
0 commit comments